Commit d5fbc905 authored by Thibault Saunier's avatar Thibault Saunier

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
parent 5903e2df
......@@ -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);
......
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