summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r--video/out/gl_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index 0c09f29e58..881f649a34 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -1948,7 +1948,7 @@ static bool init_format(int fmt, struct gl_video *init)
init = &dummy;
init->hwdec_active = false;
- if (init->hwdec && init->hwdec->driver->query_format(fmt)) {
+ if (init->hwdec && init->hwdec->driver->imgfmt == fmt) {
fmt = init->hwdec->converted_imgfmt;
init->hwdec_active = true;
}