pidgin: 49f43a7a: Fix another vvconfig crash. Fixes #1329...
rekkanoryo at pidgin.im
rekkanoryo at pidgin.im
Sat Apr 30 12:32:52 EDT 2011
----------------------------------------------------------------------
Revision: 49f43a7a76fe68d77402d22dcf9dfc19e5989467
Parent: 075c2902b90abb6349a6b689e26fa0ecf720ca04
Author: pat at erley.org
Date: 04/30/11 12:24:14
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/49f43a7a76fe68d77402d22dcf9dfc19e5989467
Changelog:
Fix another vvconfig crash. Fixes #13290, #13774.
Changes against parent 075c2902b90abb6349a6b689e26fa0ecf720ca04
patched pidgin/plugins/vvconfig.c
-------------- next part --------------
============================================================
--- pidgin/plugins/vvconfig.c cf4a6f996cd8e75db00f2e14c81d72408654f315
+++ pidgin/plugins/vvconfig.c c999755a277af791f4d9723c84794eb16b52be57
@@ -90,7 +90,17 @@ get_element_devices(const gchar *element
}
element = gst_element_factory_make(element_name, "test");
+ if(!element) {
+ purple_debug_info("vvconfig", "'%s' - unable to find element\n", element_name);
+ return g_list_reverse(ret);
+ }
+
klass = G_OBJECT_GET_CLASS (element);
+ if(!klass) {
+ purple_debug_info("vvconfig", "'%s' - unable to find G_Object Class\n", element_name);
+ return g_list_reverse(ret);
+ }
+
if (!g_object_class_find_property(klass, "device") ||
!GST_IS_PROPERTY_PROBE(element) ||
!(probe = GST_PROPERTY_PROBE(element)) ||
More information about the Commits
mailing list