mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
pad: don't forward on NULL pads
The iterator can return NULL in some cases, avoid pushing on those NULL pads.
This commit is contained in:
parent
e32fa21071
commit
651e433427
1 changed files with 1 additions and 1 deletions
|
@ -2496,7 +2496,7 @@ gst_pad_forward (GstPad * pad, GstPadForwardFunction forward,
|
||||||
intpad = g_value_get_object (&item);
|
intpad = g_value_get_object (&item);
|
||||||
|
|
||||||
/* if already pushed, skip. FIXME, find something faster to tag pads */
|
/* 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);
|
g_value_reset (&item);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue