diff options
author | Edward Hervey <edward@centricular.com> | 2017-12-06 17:07:29 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-12-06 17:23:05 +0100 |
commit | 0afc114629ef93c0107928142ee25c50d8db38ee (patch) | |
tree | 883262d53ea03282d07f3f3e50ef4a7b8117dfae | |
parent | adf304d5af0ec43b9d3ec891c96c81da449bfc9d (diff) |
gstpad: Handle GST_PAD_PROBE_HANDLED on sticky event push
When actually pushing an event, if we get GST_FLOW_CUSTOM_SUCCESS_1
(which is the conversion of GST_PAD_PROBE_HANDLED return value),
don't consider the stick event push as ignored, but as handled
-rw-r--r-- | gst/gstpad.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gstpad.c b/gst/gstpad.c index 48dde245a..39303baac 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -3871,6 +3871,8 @@ push_sticky (GstPad * pad, PadEvent * ev, gpointer user_data) } else { data->ret = gst_pad_push_event_unchecked (pad, gst_event_ref (event), GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM); + if (data->ret == GST_FLOW_CUSTOM_SUCCESS_1) + data->ret = GST_FLOW_OK; } switch (data->ret) { |