mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-14 19:35:39 +00:00
tag: update for new typefind
This commit is contained in:
parent
e302833e65
commit
3a53451501
1 changed files with 6 additions and 5 deletions
|
@ -141,7 +141,7 @@ static gboolean gst_tag_demux_sink_event (GstPad * pad, GstObject * parent,
|
||||||
|
|
||||||
static gboolean gst_tag_demux_src_activate_pull (GstPad * pad, gboolean active);
|
static gboolean gst_tag_demux_src_activate_pull (GstPad * pad, gboolean active);
|
||||||
static GstFlowReturn gst_tag_demux_read_range (GstTagDemux * tagdemux,
|
static GstFlowReturn gst_tag_demux_read_range (GstTagDemux * tagdemux,
|
||||||
guint64 offset, guint length, GstBuffer ** buffer);
|
GstObject * parent, guint64 offset, guint length, GstBuffer ** buffer);
|
||||||
|
|
||||||
static GstFlowReturn gst_tag_demux_src_getrange (GstPad * srcpad,
|
static GstFlowReturn gst_tag_demux_src_getrange (GstPad * srcpad,
|
||||||
GstObject * parent, guint64 offset, guint length, GstBuffer ** buffer);
|
GstObject * parent, guint64 offset, guint length, GstBuffer ** buffer);
|
||||||
|
@ -1173,10 +1173,11 @@ gst_tag_demux_sink_activate (GstPad * sinkpad)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 3 - Do typefinding on data */
|
/* 3 - Do typefinding on data */
|
||||||
caps = gst_type_find_helper_get_range (GST_OBJECT (demux),
|
caps = gst_type_find_helper_get_range (GST_OBJECT (demux), NULL,
|
||||||
(GstTypeFindHelperGetRangeFunction) gst_tag_demux_read_range,
|
(GstTypeFindHelperGetRangeFunction) gst_tag_demux_read_range,
|
||||||
demux->priv->upstream_size
|
demux->priv->upstream_size
|
||||||
- (demux->priv->strip_start + demux->priv->strip_end), &probability);
|
- (demux->priv->strip_start + demux->priv->strip_end), NULL,
|
||||||
|
&probability);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (demux, "Found type %" GST_PTR_FORMAT " with a "
|
GST_DEBUG_OBJECT (demux, "Found type %" GST_PTR_FORMAT " with a "
|
||||||
"probability of %u", caps, probability);
|
"probability of %u", caps, probability);
|
||||||
|
@ -1236,7 +1237,7 @@ gst_tag_demux_src_activate_pull (GstPad * pad, gboolean active)
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
gst_tag_demux_read_range (GstTagDemux * demux,
|
gst_tag_demux_read_range (GstTagDemux * demux, GstObject * parent,
|
||||||
guint64 offset, guint length, GstBuffer ** buffer)
|
guint64 offset, guint length, GstBuffer ** buffer)
|
||||||
{
|
{
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
|
@ -1303,7 +1304,7 @@ gst_tag_demux_src_getrange (GstPad * srcpad, GstObject * parent,
|
||||||
demux->priv->send_tag_event = FALSE;
|
demux->priv->send_tag_event = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return gst_tag_demux_read_range (demux, offset, length, buffer);
|
return gst_tag_demux_read_range (demux, NULL, offset, length, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
|
|
Loading…
Reference in a new issue