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:
Luis de Bethencourt 2015-07-21 14:10:57 +01:00
parent c9820f20e2
commit ac54fa8c95

View file

@ -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: