[vlc-commits] decoder: return 0 display time on pause

Francois Cartegnie git at videolan.org
Fri Apr 27 15:33:06 CEST 2018


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Apr 25 21:06:56 2018 +0200| [7227c88a607a4eda95807c5ad87e6a436106ac55] | committer: Hugo Beauzée-Luyssen

decoder: return 0 display time on pause

fixes next frame -> late frame regressions
with decoders no longer in waiting state

(cherry picked from commit fa25780ed31b708bda687f144ee7dec8c38a709c)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=7227c88a607a4eda95807c5ad87e6a436106ac55
---

 src/input/decoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 87f26e5258..1cb9aa82fc 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -620,7 +620,7 @@ static mtime_t DecoderGetDisplayDate( decoder_t *p_dec, mtime_t i_ts )
     decoder_owner_sys_t *p_owner = p_dec->p_owner;
 
     vlc_mutex_lock( &p_owner->lock );
-    if( p_owner->b_waiting )
+    if( p_owner->b_waiting || p_owner->paused )
         i_ts = VLC_TS_INVALID;
     vlc_mutex_unlock( &p_owner->lock );
 



More information about the vlc-commits mailing list