[vlc-commits] [Git][videolan/vlc][master] aout: fix assert after pause -> flush -> resume

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Nov 23 15:06:24 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
ef576bbb by Thomas Guillem at 2023-11-23T14:42:15+00:00
aout: fix assert after pause -> flush -> resume

Replace the assert with a if check. 'timing.pause_date' is invalid after
a flush and there is nothing to delay in that case.

Fixes regression from a3ddf46f334bd48deb34032f07c4cce4a7bea4d9

- - - - -


1 changed file:

- src/audio_output/dec.c


Changes:

=====================================
src/audio_output/dec.c
=====================================
@@ -847,9 +847,8 @@ void vlc_aout_stream_ChangePause(vlc_aout_stream *stream, bool paused, vlc_tick_
             assert(stream->timing.pause_date == VLC_TICK_INVALID);
             stream->timing.pause_date = date;
         }
-        else
+        else if (stream->timing.pause_date != VLC_TICK_INVALID)
         {
-            assert(stream->timing.pause_date != VLC_TICK_INVALID);
             /* Delay the last timing with the pause duration. This will be used
              * by stream_GetDelay() until the module updates its next point
              * after being resumed. */



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

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


VideoLAN code repository instance


More information about the vlc-commits mailing list