From 2cb7c66ac781cd77d1fe99aebb34114f82685054 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 26 Feb 2020 09:08:03 +0530 Subject: [PATCH] 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. --- gst/transcode/gsttranscodebin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/transcode/gsttranscodebin.c b/gst/transcode/gsttranscodebin.c index e69897a..972fd2f 100644 --- a/gst/transcode/gsttranscodebin.c +++ b/gst/transcode/gsttranscodebin.c @@ -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); -- 2.7.4