[vlc-devel] commit: Fixed display of first frame after seek while paused. ( Laurent Aimar )
git version control
git at videolan.org
Wed Oct 22 22:22:05 CEST 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Oct 16 23:55:33 2008 +0200| [d4980f0bb4d1fccc42214e5d8b2f121ff79cc2c6] | committer: Laurent Aimar
Fixed display of first frame after seek while paused.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d4980f0bb4d1fccc42214e5d8b2f121ff79cc2c6
---
src/input/decoder.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index b0b8aa5..e3ac9e6 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1161,6 +1161,7 @@ static void DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture,
{
decoder_owner_sys_t *p_owner = p_dec->p_owner;
vout_thread_t *p_vout = p_owner->p_vout;
+ bool b_first_buffered;
if( p_picture->date <= 0 )
{
@@ -1188,8 +1189,9 @@ static void DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture,
vlc_cond_signal( &p_owner->wait );
}
}
+ b_first_buffered = p_owner->buffer.p_picture != NULL;
- for( ;; )
+ for( ;; b_first_buffered = false )
{
bool b_has_more = false;
@@ -1248,7 +1250,7 @@ static void DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture,
if( !b_reject )
{
- if( i_rate != p_owner->i_last_rate )
+ if( i_rate != p_owner->i_last_rate || b_first_buffered )
{
/* Be sure to not display old picture after our own */
vout_Flush( p_vout, p_picture->date );
More information about the vlc-devel
mailing list