[vlc-commits] decoder: flush the vout using vout_FlushAll()

Steve Lhomme git at videolan.org
Wed Jul 4 08:59:06 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul  3 11:58:17 2018 +0200| [1bd8043929507dd659db69713f34e09b7ecc9f40] | committer: Steve Lhomme

decoder: flush the vout using vout_FlushAll()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1bd8043929507dd659db69713f34e09b7ecc9f40
---

 src/input/decoder.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 2b8298bc58..2c332a9d53 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -151,8 +151,6 @@ struct decoder_owner
 #define DECODER_SPU_VOUT_WAIT_DURATION   VLC_TICK_FROM_MS(200)
 #define BLOCK_FLAG_CORE_PRIVATE_RELOADED (1 << BLOCK_FLAG_CORE_PRIVATE_SHIFT)
 
-#define VLC_TS_OLDEST  (VLC_TICK_INVALID + 1)
-
 static inline struct decoder_owner *dec_get_owner( decoder_t *p_dec )
 {
     return container_of( p_dec, struct decoder_owner, dec );
@@ -977,7 +975,7 @@ static void DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture,
         msg_Dbg( p_dec, "end of video preroll" );
 
         if( p_vout )
-            vout_Flush( p_vout, VLC_TS_OLDEST );
+            vout_FlushAll( p_vout );
     }
 
     if( p_picture->date == VLC_TICK_INVALID )
@@ -1465,7 +1463,7 @@ static void DecoderProcessFlush( decoder_t *p_dec )
     else if( p_dec->fmt_out.i_cat == VIDEO_ES )
     {
         if( p_owner->p_vout )
-            vout_Flush( p_owner->p_vout, VLC_TS_OLDEST );
+            vout_FlushAll( p_owner->p_vout );
     }
     else if( p_dec->fmt_out.i_cat == SPU_ES )
     {



More information about the vlc-commits mailing list