From 90bbb830d9e4497bf79b66dc0b250e66af9246e1 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Wed, 5 Nov 2014 09:41:36 +0200 Subject: [PATCH] playback: Skip 'ANY' capsfeature while finding the count of common capsfeatures https://bugzilla.gnome.org/show_bug.cgi?id=687182 --- gst/playback/gstplaybackutils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/playback/gstplaybackutils.c b/gst/playback/gstplaybackutils.c index bd6ad7b..d003c91 100644 --- a/gst/playback/gstplaybackutils.c +++ b/gst/playback/gstplaybackutils.c @@ -91,12 +91,16 @@ gst_playback_utils_get_n_common_capsfeatures (GstElementFactory * fact1, for (i = 0; i < fact1_caps_size; i++) { fact1_features = gst_caps_get_features ((const GstCaps *) fact1_tmpl_caps, i); + if (gst_caps_features_is_any (fact1_features)) + continue; fact1_struct = gst_caps_get_structure ((const GstCaps *) fact1_tmpl_caps, i); for (j = 0; j < fact2_caps_size; j++) { fact2_features = gst_caps_get_features ((const GstCaps *) fact2_tmpl_caps, j); + if (gst_caps_features_is_any (fact2_features)) + continue; fact2_struct = gst_caps_get_structure ((const GstCaps *) fact2_tmpl_caps, j); -- 2.7.4