diff pidgin/gtksound.c @ 16101:cbb2ee5464b4

Fix a possible gstreamer crash
author Sean Egan <seanegan@gmail.com>
date Sat, 14 Apr 2007 08:42:17 +0000
parents 07554cc5d090
children 247e421c4fa6
line wrap: on
line diff
--- a/pidgin/gtksound.c	Sat Apr 14 08:19:51 2007 +0000
+++ b/pidgin/gtksound.c	Sat Apr 14 08:42:17 2007 +0000
@@ -468,7 +468,11 @@
 	}
 
 	play = gst_element_factory_make("playbin", "play");
-
+	
+	if (play == NULL) {
+		return;
+	}
+	
 	uri = g_strdup_printf("file://%s", filename);
 
 	g_object_set(G_OBJECT(play), "uri", uri,