/* forward event to unblock check_collected */
if (event_func)
res = event_func (pads, data, event, event_user_data);
- if (!res)
+ else
res = gst_pad_event_default (pad, parent, event);
/* now unblock the chain function.
}
if (event_func)
res = event_func (pads, data, event, event_user_data);
- if (!res)
+ else
res = gst_pad_event_default (pad, parent, event);
if (need_unlock)
GST_COLLECT_PADS2_STREAM_UNLOCK (pads);
GST_COLLECT_PADS2_STREAM_LOCK (pads);
need_unlock = TRUE;
}
- if (event_func)
+ if (event_func) {
res = event_func (pads, data, event, event_user_data);
- if (!res) {
+ } else {
gst_event_unref (event);
res = TRUE;
}
* @event: the #GstEvent received
* @user_data: user data passed to gst_collect_pads2_set_event_function()
*
- * A function that will be called after collectpads has processed the event.
+ * A function that will be called while processing an event. It takes
+ * ownership of the event and is responsible for forwarding
+ * events downstream (with gst_pad_event_default()) or dropping events.
+ *
+ * The SEGMENT and EOS events should usually be dropped by this function.
*
* Returns: %TRUE if the pad could handle the event
*