Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
16100:5311fcd9fbfb | 16101:cbb2ee5464b4 |
---|---|
466 purple_debug_error("sound", "Unknown sound method '%s'\n", method); | 466 purple_debug_error("sound", "Unknown sound method '%s'\n", method); |
467 return; | 467 return; |
468 } | 468 } |
469 | 469 |
470 play = gst_element_factory_make("playbin", "play"); | 470 play = gst_element_factory_make("playbin", "play"); |
471 | 471 |
472 if (play == NULL) { | |
473 return; | |
474 } | |
475 | |
472 uri = g_strdup_printf("file://%s", filename); | 476 uri = g_strdup_printf("file://%s", filename); |
473 | 477 |
474 g_object_set(G_OBJECT(play), "uri", uri, | 478 g_object_set(G_OBJECT(play), "uri", uri, |
475 "volume", volume, | 479 "volume", volume, |
476 "audio-sink", sink, NULL); | 480 "audio-sink", sink, NULL); |