diff -r d46109c1ae2f -r 1aec418902fd pidgin/gtksound.c --- a/pidgin/gtksound.c Wed May 21 21:07:22 2008 +0000 +++ b/pidgin/gtksound.c Wed May 21 22:06:52 2008 +0000 @@ -491,26 +491,12 @@ if (purple_running_gnome()) { sink = gst_element_factory_make("gconfaudiosink", "sink"); } - if (!sink) - sink = gst_element_factory_make("autoaudiosink", "sink"); - if (!sink) { - purple_debug_error("sound", "Unable to create GStreamer audiosink.\n"); - return; - } } #ifndef _WIN32 else if (!strcmp(method, "esd")) { sink = gst_element_factory_make("esdsink", "sink"); - if (!sink) { - purple_debug_error("sound", "Unable to create GStreamer audiosink.\n"); - return; - } } else if (!strcmp(method, "alsa")) { sink = gst_element_factory_make("alsasink", "sink"); - if (!sink) { - purple_debug_error("sound", "Unable to create GStreamer audiosink.\n"); - return; - } } #endif else { @@ -518,6 +504,11 @@ return; } + if (strcmp(method, "automatic") != 0 && !sink) { + purple_debug_error("sound", "Unable to create GStreamer audiosink.\n"); + return; + } + play = gst_element_factory_make("playbin", "play"); if (play == NULL) {