mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
[MOVED FROM GST-P-FARSIGHT] Move flush stop inside where it belongs
20080515000214-3e2dc-cda5cddd1ead5c48a554e9e9bc75ae68437bcdfb.gz
This commit is contained in:
parent
703b3326cc
commit
3c835d5536
1 changed files with 4 additions and 13 deletions
|
@ -451,17 +451,6 @@ gst_live_adder_flush_start (GstLiveAdder * adder)
|
|||
GST_OBJECT_UNLOCK (adder);
|
||||
}
|
||||
|
||||
static void
|
||||
gst_live_adder_flush_stop (GstLiveAdder * adder)
|
||||
{
|
||||
GST_DEBUG_OBJECT (adder, "Enabling pop on queue");
|
||||
|
||||
/* Mark as non flushing */
|
||||
GST_OBJECT_LOCK (adder);
|
||||
adder->srcresult = GST_FLOW_OK;
|
||||
GST_OBJECT_UNLOCK (adder);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_live_adder_src_activate_push (GstPad * pad, gboolean active)
|
||||
{
|
||||
|
@ -471,8 +460,10 @@ gst_live_adder_src_activate_push (GstPad * pad, gboolean active)
|
|||
adder = GST_LIVE_ADDER (gst_pad_get_parent (pad));
|
||||
|
||||
if (active) {
|
||||
/* allow data processing */
|
||||
gst_live_adder_flush_stop (adder);
|
||||
/* Mark as non flushing */
|
||||
GST_OBJECT_LOCK (adder);
|
||||
adder->srcresult = GST_FLOW_OK;
|
||||
GST_OBJECT_UNLOCK (adder);
|
||||
|
||||
/* start pushing out buffers */
|
||||
GST_DEBUG_OBJECT (adder, "Starting task on srcpad");
|
||||
|
|
Loading…
Reference in a new issue