Mercurial > pidgin.yaz
changeset 27990:feb17f2b5b7a
Don't crash when there isn't a webcam connected.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Wed, 22 Jul 2009 03:11:05 +0000 |
parents | 3fc434ac0c57 |
children | 9f9e70099573 |
files | libpurple/mediamanager.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/mediamanager.c Tue Jul 21 17:10:29 2009 +0000 +++ b/libpurple/mediamanager.c Wed Jul 22 03:11:05 2009 +0000 @@ -780,7 +780,8 @@ pad = gst_element_get_static_pad(queue, "sink"); peer = gst_pad_get_peer(pad); gst_object_unref(pad); - gst_element_release_request_pad(GST_ELEMENT_PARENT(peer), peer); + if (peer != NULL) + gst_element_release_request_pad(GST_ELEMENT_PARENT(peer), peer); gst_element_set_locked_state(queue, TRUE); gst_element_set_state(queue, GST_STATE_NULL); gst_bin_remove(GST_BIN(GST_ELEMENT_PARENT(queue)), queue);