Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
31923d31 by Thomas Guillem at 2024-05-06T17:11:58+00:00
aout: dec: reset the stream on restart

stream_Reset() will reset the clock and internal timings. It is
necessary since the aout module stopped and started.

This fixes incoherent timings when after aout_RestartRequest().

- - - - -


1 changed file:

- src/audio_output/dec.c


Changes:

=====================================
src/audio_output/dec.c
=====================================
@@ -384,6 +384,8 @@ static int stream_CheckReady (vlc_aout_stream *stream)
              * change from the user. */
             if ((restart & AOUT_RESTART_OUTPUT_DEC) == AOUT_RESTART_OUTPUT_DEC)
                 status = AOUT_DEC_CHANGED;
+
+            stream_Reset(stream);
         }
         else if (tracer != NULL)
             vlc_tracer_TraceEvent(tracer, "RENDER", stream->str_id, 
"filters_restart");



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

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/31923d31ac86845464c8a37185cb16ee0691b282
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