[vlc-devel] [PATCH 03/10] aout: aout_DecDrain: drain at the end

Thomas Guillem thomas at gllm.fr
Tue Mar 19 17:45:18 CET 2019


---
 src/audio_output/dec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index d14218600b..ae686f2dc2 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -554,11 +554,11 @@ void aout_DecDrain(audio_output_t *aout)
     if (block)
         aout->play(aout, block, vlc_tick_now());
 
-    aout_Drain(aout);
-
     vlc_clock_Reset(owner->sync.clock);
     aout_FiltersResetClock(owner->filters);
 
     owner->sync.discontinuity = true;
     owner->original_pts = VLC_TICK_INVALID;
+
+    aout_Drain(aout);
 }
-- 
2.20.1



More information about the vlc-devel mailing list