mfvideoencoder: Fix device enumeration
authorSeungha Yang <seungha@centricular.com>
Sat, 22 Oct 2022 13:37:33 +0000 (22:37 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 24 Oct 2022 12:42:51 +0000 (12:42 +0000)
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>

subprojects/gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp

index 11566f1..a763247 100644 (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) {