[vlc-commits] decoder: return 0 display time on pause
Francois Cartegnie
git at videolan.org
Wed Apr 25 21:19:50 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Apr 25 21:06:56 2018 +0200| [fa25780ed31b708bda687f144ee7dec8c38a709c] | committer: Francois Cartegnie
decoder: return 0 display time on pause
fixes next frame -> late frame regressions
with decoders no longer in waiting state
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fa25780ed31b708bda687f144ee7dec8c38a709c
---
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 456b103935..1a02d22672 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -619,7 +619,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