From 91dcd54ae5b2b6c9e2dde5a2de422555e2ef37d4 Mon Sep 17 00:00:00 2001 From: Olivier Crete Date: Thu, 15 May 2008 01:22:57 +0000 Subject: [PATCH] [MOVED FROM GST-P-FARSIGHT] Reset vars before restarting thread on flush stop 20080515012257-3e2dc-e3521752cf3eaf2b8767f4c620eadfc24a8e8e31.gz --- gst/liveadder/liveadder.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/liveadder/liveadder.c b/gst/liveadder/liveadder.c index 02af82c..9d7353e 100644 --- a/gst/liveadder/liveadder.c +++ b/gst/liveadder/liveadder.c @@ -536,12 +536,14 @@ gst_live_adder_sink_event (GstPad * pad, GstEvent * event) ret = gst_pad_push_event (adder->srcpad, event); break; case GST_EVENT_FLUSH_STOP: - ret = gst_pad_push_event (adder->srcpad, event); - ret = gst_live_adder_src_activate_push (adder->srcpad, TRUE); GST_OBJECT_LOCK (adder); + adder->segment_pending = TRUE; + adder->next_timestamp = GST_CLOCK_TIME_NONE; reset_pad_private (pad); adder->segment_pending = TRUE; GST_OBJECT_UNLOCK (adder); + ret = gst_pad_push_event (adder->srcpad, event); + ret = gst_live_adder_src_activate_push (adder->srcpad, TRUE); break; case GST_EVENT_EOS: { -- 2.7.4