mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
5903e2dfbb
commit
d5fbc905e3
1 changed files with 4 additions and 0 deletions
|
@ -1070,6 +1070,10 @@ child_is_same_stream (const GstCaps * _parent, const GstCaps * child)
|
||||||
for (i = 0; i < size; i++) {
|
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), "parsed");
|
||||||
gst_structure_remove_field (gst_caps_get_structure (parent, i), "framed");
|
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);
|
res = gst_caps_can_intersect (parent, child);
|
||||||
gst_caps_unref (parent);
|
gst_caps_unref (parent);
|
||||||
|
|
Loading…
Reference in a new issue