gst/gstelement.c: Don't crash printing the warning if the pad has no parent.

Original commit message from CVS:
* gst/gstelement.c: (gst_element_remove_pad):
Don't crash printing the warning if the pad has no parent.
This commit is contained in:
Tim-Philipp Müller 2006-08-04 15:15:24 +00:00
parent 319e774f55
commit 2d28c5226b
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2006-08-04 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstelement.c: (gst_element_remove_pad):
Don't crash printing the warning if the pad has no parent.
2006-08-02 Wim Taymans <wim@fluendo.com>
* libs/gst/dataprotocol/dataprotocol.c:

View file

@ -746,8 +746,7 @@ not_our_pad:
/* FIXME, locking order? */
GST_OBJECT_LOCK (element);
g_critical ("Padname %s:%s does not belong to element %s when removing",
GST_ELEMENT_NAME (GST_PAD_PARENT (pad)), GST_PAD_NAME (pad),
GST_ELEMENT_NAME (element));
GST_DEBUG_PAD_NAME (pad), GST_ELEMENT_NAME (element));
GST_OBJECT_UNLOCK (element);
GST_OBJECT_UNLOCK (pad);
return FALSE;