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
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);