From 651e43342792558cf63ec177b2d2f51dd819a918 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 10 Dec 2011 11:07:02 +0100 Subject: [PATCH] pad: don't forward on NULL pads The iterator can return NULL in some cases, avoid pushing on those NULL pads. --- gst/gstpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index 6cd6cae..6dca359 100644 --- 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; } -- 2.7.4