mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
liveadder: return false if event couldn't be pushed
Make the gst pad's event function return false if the event couldn't be pushed to the pad.
This commit is contained in:
parent
c9820f20e2
commit
ac54fa8c95
1 changed files with 2 additions and 1 deletions
|
@ -558,7 +558,8 @@ gst_live_adder_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
reset_pad_private (pad);
|
reset_pad_private (pad);
|
||||||
GST_OBJECT_UNLOCK (adder);
|
GST_OBJECT_UNLOCK (adder);
|
||||||
ret = gst_pad_push_event (adder->srcpad, event);
|
ret = gst_pad_push_event (adder->srcpad, event);
|
||||||
ret = gst_live_adder_src_activate_mode (adder->srcpad, GST_OBJECT (adder),
|
ret &=
|
||||||
|
gst_live_adder_src_activate_mode (adder->srcpad, GST_OBJECT (adder),
|
||||||
GST_PAD_MODE_PUSH, TRUE);
|
GST_PAD_MODE_PUSH, TRUE);
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_EOS:
|
case GST_EVENT_EOS:
|
||||||
|
|
Loading…
Reference in a new issue