From: Ronald S. Bultje Date: Fri, 13 Sep 2002 13:32:28 +0000 (+0000) Subject: Dont give a warning on unconnected pads (bugzilla ID 93218) - thanks Iain X-Git-Tag: BRANCH-RELEASE-0_4_1-ROOT~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc6ac17dc17da4707114670c3b2f72d688f406b0;p=platform%2Fupstream%2Fgstreamer.git Dont give a warning on unconnected pads (bugzilla ID 93218) - thanks Iain Original commit message from CVS: Dont give a warning on unconnected pads (bugzilla ID 93218) - thanks Iain --- diff --git a/gst/gstthread.c b/gst/gstthread.c index e21e185..4c0a836 100644 --- a/gst/gstthread.c +++ b/gst/gstthread.c @@ -468,9 +468,12 @@ gst_thread_change_state (GstElement * element) pads = GST_ELEMENT_PADS (element); while (pads) { - GstRealPad *peer = GST_REAL_PAD (GST_PAD_PEER (pads->data)); + GstRealPad *peer = NULL; GstElement *peerelement; + if (GST_PAD_PEER (pads->data)) + peer = GST_REAL_PAD (GST_PAD_PEER (pads->data)); + pads = g_list_next (pads); if (!peer)