Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2017-12-06 19:07:29 +0300
committerEdward Hervey <bilboed@bilboed.com>2017-12-06 19:11:05 +0300
commit4a3f747e08c5a325c896bfef9d4fc765b3912e5b (patch)
tree0e0b828e4a3b6196047b029aba9dea7a6534f5c8
parent38144d1a1c8e8826d3c2bd0864258e45e5c0b5ce (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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gstpad.c b/gst/gstpad.c
index 5cb3d1b9a9..2fca5f5c5f 100644
--- a/gst/gstpad.c
+++ b/gst/gstpad.c
@@ -3856,6 +3856,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) {