mfvideoencoder: Fix device enumeration

Although a GPU does not support the codec, the other GPU might
be able to support the codec

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3250>
This commit is contained in:
Seungha Yang 2022-10-22 22:37:33 +09:00 committed by GStreamer Marge Bot
parent d92c43cb0f
commit e9415aafb5

View file

@ -1955,9 +1955,8 @@ gst_mf_video_encoder_register (GstPlugin * plugin, guint rank, GUID * subtype,
gst_mf_video_encoder_enum (enum_flags, subtype, 0, &device_caps,
device, &sink_template, &src_template);
/* No more MFT to enumerate */
if (!transform)
break;
continue;
/* Failed to open MFT */
if (!sink_template) {