screenshot: correctly detect hardware frame
This only ever worked by accident and relied on broken behavior that was
fixed by 9b1d47ece1
This commit is contained in:
1 parent
c0d989c839
commit
c66204b69b
1 file changed
+1
-1
+1
-1
@@ -377,7 +377,7 @@ static struct mp_image *screenshot_get(struct MPContext *mpctx, int mode,
|
||||
}
|
||||
|
||||
// vo_get_current_frame() can return a hardware frame, which we have to download first.
|
||||
if (image && image->fmt.flags & MP_IMGFLAG_HWACCEL) {
|
||||
if (image && IMGFMT_IS_HWACCEL(image->imgfmt)) {
|
||||
struct mp_image *nimage = mp_image_hw_download(image, NULL);
|
||||
talloc_free(image);
|
||||
if (!nimage)
|
||||
|
||||
Reference in new issue
Block a user