mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
discoverer: also filter 'framed' field when looking for same streams
Fixes extra streams for some mp4 files containing aac audio.
This commit is contained in:
parent
2055f2b7de
commit
c07af869a7
1 changed files with 3 additions and 2 deletions
|
@ -997,8 +997,8 @@ find_stream_for_node (GstDiscoverer * dc, const GstStructure * topology)
|
|||
return st;
|
||||
}
|
||||
|
||||
/* this can fail due to parsed=TRUE/FALSE differences, thus we filter the
|
||||
* parent */
|
||||
/* this can fail due to {framed,parsed}={TRUE,FALSE} differences, thus we filter
|
||||
* the parent */
|
||||
static gboolean
|
||||
child_is_same_stream (const GstCaps * _parent, const GstCaps * child)
|
||||
{
|
||||
|
@ -1008,6 +1008,7 @@ 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");
|
||||
}
|
||||
res = gst_caps_can_intersect (parent, child);
|
||||
gst_caps_unref (parent);
|
||||
|
|
Loading…
Reference in a new issue