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
(from parent 1:
e32fa21
)
pad: don't forward on NULL pads
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Sat, 10 Dec 2011 10:07:02 +0000
(11:07 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Sat, 10 Dec 2011 10:07:02 +0000
(11:07 +0100)
The iterator can return NULL in some cases, avoid pushing on those
NULL pads.
gst/gstpad.c
patch
|
blob
|
history
diff --git
a/gst/gstpad.c
b/gst/gstpad.c
index
6cd6cae
..
6dca359
100644
(file)
--- a/
gst/gstpad.c
+++ b/
gst/gstpad.c
@@
-2496,7
+2496,7
@@
gst_pad_forward (GstPad * pad, GstPadForwardFunction forward,
intpad = g_value_get_object (&item);
/* if already pushed, skip. FIXME, find something faster to tag pads */
- if (g_list_find (pushed_pads, intpad)) {
+ if (
intpad == NULL ||
g_list_find (pushed_pads, intpad)) {
g_value_reset (&item);
break;
}