Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
bf20ed48 by Thomas Guillem at 2024-11-20T10:55:43+00:00
pipewire: only use pw_stream_get_nsec() past 1.1.0

Fixes #28874

- - - - -


1 changed file:

- modules/audio_output/pipewire.c


Changes:

=====================================
modules/audio_output/pipewire.c
=====================================
@@ -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)



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/bf20ed48170adec8d7e0b1f29662fcb3c413e37f

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/bf20ed48170adec8d7e0b1f29662fcb3c413e37f
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to