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:
1554aaf
)
pad: avoid inadvertently dropping an event
author
Mark Nauwelaerts
<mark.nauwelaerts@collabora.co.uk>
Mon, 11 Jul 2011 09:37:28 +0000
(11:37 +0200)
committer
Mark Nauwelaerts
<mark.nauwelaerts@collabora.co.uk>
Mon, 11 Jul 2011 09:59:18 +0000
(11:59 +0200)
... particularly a non-sticky serialized event that happens to pass
when an event update is pending.
gst/gstpad.c
patch
|
blob
|
history
diff --git
a/gst/gstpad.c
b/gst/gstpad.c
index
40b699a
..
56a4029
100644
(file)
--- a/
gst/gstpad.c
+++ b/
gst/gstpad.c
@@
-4539,7
+4539,11
@@
gst_pad_send_event (GstPad * pad, GstEvent * event)
gst_event_unref (event);
result = TRUE;
- } else {
+ }
+
+ /* ensure to pass on event;
+ * note that a sticky event has already been updated above */
+ if (G_LIKELY (!needs_events || !sticky)) {
GstPadEventFunction eventfunc;
if (G_UNLIKELY ((eventfunc = GST_PAD_EVENTFUNC (pad)) == NULL))