From 2aaa475a4feb5718cb024344c5f3167f5eb2e8c0 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Tue, 7 Feb 2012 12:48:50 +0100 Subject: [PATCH] baseparse: remove closing segment handling --- libs/gst/base/gstbaseparse.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c index adc33e8..656d66a 100644 --- a/libs/gst/base/gstbaseparse.c +++ b/libs/gst/base/gstbaseparse.c @@ -317,9 +317,6 @@ struct _GstBaseParsePrivate /* Newsegment event to be sent after SEEK */ GstEvent *pending_segment; - /* Segment event that closes the running segment prior to SEEK */ - GstEvent *close_segment; - /* push mode helper frame */ GstBaseParseFrame frame; @@ -470,10 +467,6 @@ gst_base_parse_finalize (GObject * object) p_ev = &parse->priv->pending_segment; 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) { 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)) { GstEvent *pending_segment; -- 2.7.4