Commit d4980f0b authored by Laurent Aimar's avatar Laurent Aimar

Fixed display of first frame after seek while paused.

parent 75f55c27
...@@ -1161,6 +1161,7 @@ static void DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture, ...@@ -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; decoder_owner_sys_t *p_owner = p_dec->p_owner;
vout_thread_t *p_vout = p_owner->p_vout; vout_thread_t *p_vout = p_owner->p_vout;
bool b_first_buffered;
if( p_picture->date <= 0 ) if( p_picture->date <= 0 )
{ {
...@@ -1188,8 +1189,9 @@ static void DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture, ...@@ -1188,8 +1189,9 @@ static void DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture,
vlc_cond_signal( &p_owner->wait ); 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; bool b_has_more = false;
...@@ -1248,7 +1250,7 @@ static void DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture, ...@@ -1248,7 +1250,7 @@ static void DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture,
if( !b_reject ) 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 */ /* Be sure to not display old picture after our own */
vout_Flush( p_vout, p_picture->date ); vout_Flush( p_vout, p_picture->date );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment