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:
parent
99315383f8
commit
6e4dd334fe
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user