mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +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,
|
gst_mf_video_encoder_enum (enum_flags, subtype, 0, &device_caps,
|
||||||
device, &sink_template, &src_template);
|
device, &sink_template, &src_template);
|
||||||
|
|
||||||
/* No more MFT to enumerate */
|
|
||||||
if (!transform)
|
if (!transform)
|
||||||
break;
|
continue;
|
||||||
|
|
||||||
/* Failed to open MFT */
|
/* Failed to open MFT */
|
||||||
if (!sink_template) {
|
if (!sink_template) {
|
||||||
|
|
Loading…
Reference in a new issue