discoverer: Ignore more parser related fields when comparing streams

The parser might do some conversion on a stream but the stream keeps
being the same, and we need to make sure GstDiscoverer detects it is the
case.

https://bugzilla.gnome.org/show_bug.cgi?id=778298
This commit is contained in:
Thibault Saunier 2017-02-08 11:42:45 -03:00
parent 5903e2dfbb
commit d5fbc905e3

View file

@ -1070,6 +1070,10 @@ child_is_same_stream (const GstCaps * _parent, const GstCaps * child)
for (i = 0; i < size; i++) {
gst_structure_remove_field (gst_caps_get_structure (parent, i), "parsed");
gst_structure_remove_field (gst_caps_get_structure (parent, i), "framed");
gst_structure_remove_field (gst_caps_get_structure (parent, i),
"stream-format");
gst_structure_remove_field (gst_caps_get_structure (parent, i),
"alignment");
}
res = gst_caps_can_intersect (parent, child);
gst_caps_unref (parent);