pidgin: 080022da: Don't crash when there isn't a webcam co...

maiku at soc.pidgin.im maiku at soc.pidgin.im
Tue Jul 21 23:15:21 EDT 2009


-----------------------------------------------------------------
Revision: 080022da62aff247ec296e6c817cae0fc476b6a6
Ancestor: 5a2bb37da0d5add24e122a13a827437ecae61ad3
Author: maiku at soc.pidgin.im
Date: 2009-07-22T03:11:05
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/080022da62aff247ec296e6c817cae0fc476b6a6

Modified files:
        libpurple/mediamanager.c

ChangeLog: 

Don't crash when there isn't a webcam connected.

-------------- next part --------------
============================================================
--- libpurple/mediamanager.c	2fafe3d7f9ea11fc9275a9114cbba9d93576c9bf
+++ libpurple/mediamanager.c	1d55fd9e6e4068c2343d62595b03f26663215867
@@ -780,7 +780,8 @@ purple_media_manager_remove_output_windo
 		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);


More information about the Commits mailing list