projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adf304d
)
gstpad: Handle GST_PAD_PROBE_HANDLED on sticky event push
author
Edward Hervey
<edward@centricular.com>
Wed, 6 Dec 2017 16:07:29 +0000
(17:07 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Wed, 6 Dec 2017 16:23:05 +0000
(17:23 +0100)
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
gst/gstpad.c
patch
|
blob
|
history
diff --git
a/gst/gstpad.c
b/gst/gstpad.c
index
48dde24
..
39303ba
100644
(file)
--- 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) {