From fba44e8a01e1b5cd965167f5d873a685bc4a9636 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sun, 17 Apr 2022 02:04:08 +0900 Subject: [PATCH] qsvh264dec: Don't register element if it's not supported by device Part-of: --- subprojects/gst-plugins-bad/sys/qsv/gstqsvh264dec.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-bad/sys/qsv/gstqsvh264dec.cpp b/subprojects/gst-plugins-bad/sys/qsv/gstqsvh264dec.cpp index c90e067..39baecc 100644 --- a/subprojects/gst-plugins-bad/sys/qsv/gstqsvh264dec.cpp +++ b/subprojects/gst-plugins-bad/sys/qsv/gstqsvh264dec.cpp @@ -478,6 +478,9 @@ gst_qsv_h264_dec_register (GstPlugin * plugin, guint rank, guint impl_index, max_resolution.height = resolutions_to_check[i].height; } + if (max_resolution.width == 0 || max_resolution.height == 0) + return; + GST_INFO ("Maximum supported resolution: %dx%d", max_resolution.width, max_resolution.height); -- 2.7.4