mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
[MOVED FROM GST-P-FARSIGHT] Reset vars before restarting thread on flush stop
20080515012257-3e2dc-e3521752cf3eaf2b8767f4c620eadfc24a8e8e31.gz
This commit is contained in:
parent
4d44cf5fe2
commit
91dcd54ae5
1 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue