aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl')
-rw-r--r--video/out/opengl/hwdec_rpi.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/video/out/opengl/hwdec_rpi.c b/video/out/opengl/hwdec_rpi.c
index 92269eab5b..6204f461d1 100644
--- a/video/out/opengl/hwdec_rpi.c
+++ b/video/out/opengl/hwdec_rpi.c
@@ -386,10 +386,15 @@ static int create(struct gl_hwdec *hw)
return 0;
}
+static bool test_format(struct gl_hwdec *hw, int imgfmt)
+{
+ return imgfmt == IMGFMT_MMAL || imgfmt == IMGFMT_420P;
+}
+
const struct gl_hwdec_driver gl_hwdec_rpi_overlay = {
.name = "rpi-overlay",
.api = HWDEC_RPI,
- .imgfmt = IMGFMT_MMAL,
+ .test_format = test_format,
.create = create,
.reinit = reinit,
.overlay_frame = overlay_frame,