Skip to content
Snippets Groups Projects
Commit bf20ed48 authored by Thomas Guillem's avatar Thomas Guillem Committed by Steve Lhomme
Browse files

pipewire: only use pw_stream_get_nsec() past 1.1.0

Fixes #28874
parent 59dfbb99
No related branches found
Tags 0.5.2
1 merge request!6364pipewire: only use pw_stream_get_nsec() past 1.1.0
Pipeline #536206 passed with stage
in 58 minutes and 13 seconds
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment