mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
baseparse: remove closing segment handling
This commit is contained in:
parent
92de0b6143
commit
2aaa475a4f
1 changed files with 0 additions and 14 deletions
|
@ -317,9 +317,6 @@ struct _GstBaseParsePrivate
|
||||||
/* Newsegment event to be sent after SEEK */
|
/* Newsegment event to be sent after SEEK */
|
||||||
GstEvent *pending_segment;
|
GstEvent *pending_segment;
|
||||||
|
|
||||||
/* Segment event that closes the running segment prior to SEEK */
|
|
||||||
GstEvent *close_segment;
|
|
||||||
|
|
||||||
/* push mode helper frame */
|
/* push mode helper frame */
|
||||||
GstBaseParseFrame frame;
|
GstBaseParseFrame frame;
|
||||||
|
|
||||||
|
@ -470,10 +467,6 @@ gst_base_parse_finalize (GObject * object)
|
||||||
p_ev = &parse->priv->pending_segment;
|
p_ev = &parse->priv->pending_segment;
|
||||||
gst_event_replace (p_ev, NULL);
|
gst_event_replace (p_ev, NULL);
|
||||||
}
|
}
|
||||||
if (parse->priv->close_segment) {
|
|
||||||
p_ev = &parse->priv->close_segment;
|
|
||||||
gst_event_replace (p_ev, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (parse->priv->cache) {
|
if (parse->priv->cache) {
|
||||||
gst_buffer_unref (parse->priv->cache);
|
gst_buffer_unref (parse->priv->cache);
|
||||||
|
@ -1948,13 +1941,6 @@ gst_base_parse_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* and should then also be linked downstream, so safe to send some events */
|
|
||||||
if (G_UNLIKELY (parse->priv->close_segment)) {
|
|
||||||
/* only set up by loop */
|
|
||||||
GST_DEBUG_OBJECT (parse, "loop sending close segment");
|
|
||||||
gst_pad_push_event (parse->srcpad, parse->priv->close_segment);
|
|
||||||
parse->priv->close_segment = NULL;
|
|
||||||
}
|
|
||||||
if (G_UNLIKELY (parse->priv->pending_segment)) {
|
if (G_UNLIKELY (parse->priv->pending_segment)) {
|
||||||
GstEvent *pending_segment;
|
GstEvent *pending_segment;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue