From 0562de067590560fb4cc84521090046ee16a28b0 Mon Sep 17 00:00:00 2001 From: xylosper Date: Mon, 30 Mar 2015 19:03:28 +0900 Subject: [PATCH] * Fix: embedded albumart wasn't displayed on initail playback (#283) --- src/mpv/video/out/vo_opengl_cb.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mpv/video/out/vo_opengl_cb.c b/src/mpv/video/out/vo_opengl_cb.c index db630e84da..4e7dfc2b1a 100644 --- a/src/mpv/video/out/vo_opengl_cb.c +++ b/src/mpv/video/out/vo_opengl_cb.c @@ -407,9 +407,11 @@ static void flip_page(struct vo *vo) frame_queue_drop_all(p->ctx); else // FRAME_DROP_POP mode frame_queue_shrink(p->ctx, p->frame_queue_size - 1); - } - frame_queue_push(p->ctx, p->ctx->waiting_frame); - p->ctx->waiting_frame = NULL; + } + if (p->ctx->waiting_frame) { + frame_queue_push(p->ctx, p->ctx->waiting_frame); + p->ctx->waiting_frame = NULL; + } update(p); pthread_mutex_unlock(&p->ctx->lock); }