mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
tagdemux: Propagate flow returns from gst_type_find_helper_get_range() properly
Instead of considering every failed typefinding as an error, even in case of e.g. GST_FLOW_FLUSHING.
This commit is contained in:
parent
7757e07f68
commit
0340c7e1f8
1 changed files with 4 additions and 2 deletions
|
@ -1365,11 +1365,13 @@ gst_tag_demux_element_find (GstTagDemux * demux)
|
|||
if (GST_PAD_MODE (demux->priv->srcpad) == GST_PAD_MODE_PULL)
|
||||
goto skip_typefinding;
|
||||
|
||||
caps = gst_type_find_helper_get_range (GST_OBJECT (demux), NULL,
|
||||
ret = gst_type_find_helper_get_range_full (GST_OBJECT (demux), NULL,
|
||||
(GstTypeFindHelperGetRangeFunction) gst_tag_demux_read_range,
|
||||
demux->priv->upstream_size
|
||||
- (demux->priv->strip_start + demux->priv->strip_end), NULL,
|
||||
&probability);
|
||||
&caps, &probability);
|
||||
if (ret != GST_FLOW_OK)
|
||||
goto read_tag_error;
|
||||
|
||||
GST_INFO_OBJECT (demux, "Found type %" GST_PTR_FORMAT " with a "
|
||||
"probability of %u", caps, probability);
|
||||
|
|
Loading…
Reference in a new issue