changeset 16101:cbb2ee5464b4

Fix a possible gstreamer crash
author Sean Egan <seanegan@gmail.com>
date Sat, 14 Apr 2007 08:42:17 +0000
parents 5311fcd9fbfb
children f3559f8d2fc1 f0f9d94928ee
files pidgin/gtksound.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
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,