diff --git a/subprojects/gst-plugins-base/gst/playback/gstplaybin2.c b/subprojects/gst-plugins-base/gst/playback/gstplaybin2.c index 9d32c6ef9a..bcbfc2045b 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstplaybin2.c +++ b/subprojects/gst-plugins-base/gst/playback/gstplaybin2.c @@ -5137,11 +5137,8 @@ done: } } gst_caps_unref (target_caps); - target_caps = tmp; + result = gst_caps_merge (result, tmp); } - - - result = gst_caps_merge (result, target_caps); gst_object_unref (target); } } diff --git a/subprojects/gst-plugins-base/gst/playback/gstplaybin3.c b/subprojects/gst-plugins-base/gst/playback/gstplaybin3.c index 70a19fef4b..e86eb627b0 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstplaybin3.c +++ b/subprojects/gst-plugins-base/gst/playback/gstplaybin3.c @@ -4309,7 +4309,8 @@ done: if (target) { GstCaps *target_caps = gst_pad_get_pad_template_caps (target); GST_PLAY_BIN3_FILTER_CAPS (filter, target_caps); - result = gst_caps_merge (result, target_caps); + if (!gst_caps_is_any (target_caps)) + result = gst_caps_merge (result, target_caps); gst_object_unref (target); } }