summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2022-07-23 14:54:11 +0200
committerNiklas Haas <git@haasn.dev>2022-07-23 14:54:39 +0200
commit6e4dd334fe22357e979be4b971b5f7c49b81f253 (patch)
tree0288083b943873dfefb3d2453043174c66ba79af
parent99315383f8635a2b8d0ca422e1221bdfa70e6471 (diff)
downloadmpv-6e4dd334fe22357e979be4b971b5f7c49b81f253.tar.bz2
mpv-6e4dd334fe22357e979be4b971b5f7c49b81f253.tar.xz
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.
-rw-r--r--video/out/vo_gpu_next.c2
1 files changed, 1 insertions, 1 deletions
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;
}