video: fix another cover art corner case

Playing a video and then an audio file with cover art kept displaying
the last frame of the video. This was because the hasframe flag was set,
perhaps due to redrawing the last video frame before the cover art image
is decoded.
This commit is contained in:
wm4 2014-06-09 00:01:12 +02:00
parent adea4386bc
commit e1d846263a
1 changed files with 1 additions and 1 deletions

View File

@ -351,6 +351,7 @@ void vo_new_frame_imminent(struct vo *vo)
assert(vo->num_video_queue > 0);
vo->driver->draw_image(vo, vo->video_queue[0]);
shift_queue(vo);
vo->hasframe = true;
}
void vo_draw_osd(struct vo *vo, struct osd_state *osd)
@ -368,7 +369,6 @@ void vo_flip_page(struct vo *vo, int64_t pts_us, int duration)
vo->driver->flip_page_timed(vo, pts_us, duration);
else
vo->driver->flip_page(vo);
vo->hasframe = true;
}
void vo_check_events(struct vo *vo)