Commit 90bbb830 authored by Sreerenj Balachandran's avatar Sreerenj Balachandran Committed by Sebastian Dröge

playback: Skip 'ANY' capsfeature while finding the count of common capsfeatures

https://bugzilla.gnome.org/show_bug.cgi?id=687182
parent 16378a7d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment