diff options
-rw-r--r-- | gst/transcode/gsttranscodebin.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gst/transcode/gsttranscodebin.c b/gst/transcode/gsttranscodebin.c index 51812f41d..e69897a42 100644 --- a/gst/transcode/gsttranscodebin.c +++ b/gst/transcode/gsttranscodebin.c @@ -293,14 +293,16 @@ make_decodebin (GstTranscodeBin * self) gst_encoding_container_profile_get_profiles (GST_ENCODING_CONTAINER_PROFILE (self->profile)); tmp; tmp = tmp->next) { - GstCaps *encodecaps = gst_encoding_profile_get_format (tmp->data); GstCaps *restrictions = gst_encoding_profile_get_restriction (tmp->data); - if (!restrictions) + if (!restrictions) { + GstCaps *encodecaps = gst_encoding_profile_get_format (tmp->data); + gst_caps_append (decodecaps, encodecaps); - else + } else { gst_caps_unref (restrictions); + } } } g_object_set (self->decodebin, "caps", decodecaps, NULL); |