transcodebin: consider 'any' as no restriction

gstreamer-rs set 'any' as default restriction which actually means 'no
restriction' so handle it as the absence of restriction.
This commit is contained in:
Guillaume Desmottes 2020-02-26 09:08:03 +05:30 committed by GStreamer Merge Bot
parent f2e322197e
commit 2cb7c66ac7

View file

@ -296,7 +296,7 @@ make_decodebin (GstTranscodeBin * self)
GstCaps *restrictions =
gst_encoding_profile_get_restriction (tmp->data);
if (!restrictions) {
if (!restrictions || gst_caps_is_any (restrictions)) {
GstCaps *encodecaps = gst_encoding_profile_get_format (tmp->data);
gst_caps_append (decodecaps, encodecaps);