From 6e4dd334fe22357e979be4b971b5f7c49b81f253 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 23 Jul 2022 14:54:11 +0200 Subject: vo_gpu_next: fix screenshots on single-frame files This check was wrong/outdated. PL_QUEUE_MORE does not imply an empty frame mix, it can still contain partial frames. --- video/out/vo_gpu_next.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 0c3ef76cbd..8b2d783727 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -1104,7 +1104,7 @@ static void video_screenshot(struct vo *vo, struct voctrl_screenshot *args) MP_ERR(vo, "Unknown error occured while trying to take screenshot!\n"); return; } - if (status == PL_QUEUE_MORE || !mix.num_frames) { + if (!mix.num_frames) { MP_ERR(vo, "No frames available to take screenshot of? Open issue\n"); return; } -- cgit v1.2.3