Skip to content

Commit 19205c9

Browse files
llyyrdancingmirrors
authored andcommitted
screenshot: correctly detect hardware frame
This only ever worked by accident and relied on broken behavior that was fixed by 9b1d47ece11da8625591bb5817bbad622485074b
1 parent 600d341 commit 19205c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

player/screenshot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ static struct mp_image *screenshot_get(struct MPContext *mpctx, int mode,
377377
}
378378

379379
// vo_get_current_frame() can return a hardware frame, which we have to download first.
380-
if (image && image->fmt.flags & MP_IMGFLAG_HWACCEL) {
380+
if (image && IMGFMT_IS_HWACCEL(image->imgfmt)) {
381381
struct mp_image *nimage = mp_image_hw_download(image, NULL);
382382
talloc_free(image);
383383
if (!nimage)

0 commit comments

Comments
 (0)