qsvh264dec: Don't register element if it's not supported by device

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2206>
This commit is contained in:
Seungha Yang 2022-04-17 02:04:08 +09:00
parent 0692a5dde9
commit fba44e8a01

View file

@ -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);