Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
438
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
bf20ed48
Commit
bf20ed48
authored
3 months ago
by
Thomas Guillem
Committed by
Steve Lhomme
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
pipewire: only use pw_stream_get_nsec() past 1.1.0
Fixes
#28874
parent
59dfbb99
No related branches found
Branches containing commit
Tags
0.5.2
Tags containing commit
1 merge request
!6364
pipewire: only use pw_stream_get_nsec() past 1.1.0
Pipeline
#536206
passed with stage
in 58 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/audio_output/pipewire.c
+4
-0
4 additions, 0 deletions
modules/audio_output/pipewire.c
with
4 additions
and
0 deletions
modules/audio_output/pipewire.c
+
4
−
0
View file @
bf20ed48
...
...
@@ -126,8 +126,12 @@ static int stream_update_latency(struct vlc_pw_stream *s, vlc_tick_t *now)
{
struct
pw_time
ts
;
#if PW_CHECK_VERSION(1, 1, 0)
/* PW monotonic clock, same than vlc_tick_now() */
*
now
=
VLC_TICK_FROM_NS
(
pw_stream_get_nsec
(
s
->
stream
));
#else
*
now
=
vlc_tick_now
();
#endif
if
(
pw_stream_get_time_n
(
s
->
stream
,
&
ts
,
sizeof
(
ts
))
<
0
||
ts
.
rate
.
denom
==
0
)
...
...
This diff is collapsed.
Click to expand it.
Olaf Hering
@olafhering
mentioned in issue
#28880
·
3 months ago
mentioned in issue
#28880
mentioned in issue #28880
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment