diff Plugins/Input/console/Audacious_Driver.cpp @ 133:3fb426494de8 trunk

[svn] Open the output channel before firing up the thread.
author nenolod
date Wed, 09 Nov 2005 21:24:24 -0800
parents c4876d6c9cc0
children 8794a4781a15
line wrap: on
line diff
--- a/Plugins/Input/console/Audacious_Driver.cpp	Wed Nov 09 20:00:16 2005 -0800
+++ b/Plugins/Input/console/Audacious_Driver.cpp	Wed Nov 09 21:24:24 2005 -0800
@@ -117,10 +117,10 @@
 
 	g_free(name);
 
-	decode_thread = g_thread_create(play_loop, spc, TRUE, NULL);
-
         if (!console_ip.output->open_audio(MY_FMT, 32000, 2))
                  return;
+
+	decode_thread = g_thread_create(play_loop, spc, TRUE, NULL);
 }
 
 static void seek(gint time)