From e9415aafb518fc4ccaf906232582391a060ed621 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sat, 22 Oct 2022 22:37:33 +0900 Subject: [PATCH] mfvideoencoder: Fix device enumeration Although a GPU does not support the codec, the other GPU might be able to support the codec Part-of: --- .../gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp b/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp index 11566f1940..a7632473b4 100644 --- a/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp +++ b/subprojects/gst-plugins-bad/sys/mediafoundation/gstmfvideoencoder.cpp @@ -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) {