mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
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:
parent
d92c43cb0f
commit
e9415aafb5
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue