mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
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:
parent
0692a5dde9
commit
fba44e8a01
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue