[vlc-commits] [Git][videolan/vlc][master] aout: dec: reset the stream earlier when restarting
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Sep 19 12:10:18 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
c208d40d by Thomas Guillem at 2024-09-19T11:55:33+00:00
aout: dec: reset the stream earlier when restarting
It should not change anything since modules don't send timings point
just after start (they do it after the first playback), but nothing
prevent it in the documentation.
This also fixes Reset() not being calling if the start of the module
fails (just after the stop).
- - - - -
1 changed file:
- src/audio_output/dec.c
Changes:
=====================================
src/audio_output/dec.c
=====================================
@@ -482,6 +482,9 @@ static int stream_CheckReady (vlc_aout_stream *stream)
aout_OutputDelete (aout);
stream->filter_format = stream->mixer_format = stream->input_format;
stream->filters_cfg = AOUT_FILTERS_CFG_INIT;
+
+ stream_Reset(stream);
+
if (aout_OutputNew(aout, stream, &stream->mixer_format, stream->input_profile,
&stream->filter_format, &stream->filters_cfg))
stream->mixer_format.i_format = 0;
@@ -495,8 +498,6 @@ 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/c208d40dcb0b57a742c03cc5307a1a16a7ccdc2b
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c208d40dcb0b57a742c03cc5307a1a16a7ccdc2b
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