1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-31 19:52:16 +00:00

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.
This commit is contained in:
Niklas Haas 2022-07-23 14:54:11 +02:00
parent 99315383f8
commit 6e4dd334fe

View File

@ -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;
}