mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
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:
parent
f2e322197e
commit
2cb7c66ac7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue