changeset 1348:d427f353e326

console: new threading model
author William Pitcock <nenolod@atheme-project.org>
date Mon, 23 Jul 2007 17:44:21 -0500
parents 76eee61ed25a
children 1e36cc6c4b23 833a7d4ea063
files src/console/Audacious_Driver.cxx
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/console/Audacious_Driver.cxx	Mon Jul 23 17:43:21 2007 -0500
+++ b/src/console/Audacious_Driver.cxx	Mon Jul 23 17:44:21 2007 -0500
@@ -310,8 +310,6 @@
 	playback->output->close_audio();
 	console_ip_is_going = 0;
 	g_static_mutex_unlock( &playback_mutex );
-	// TODO: should decode_thread be cleared here?
-	g_thread_exit( NULL );
 	return NULL;
 }
 
@@ -396,7 +394,8 @@
 	
 	pending_seek = -1;
 	console_ip_is_going = 1;
-	decode_thread = g_thread_create( play_loop_track, playback, TRUE, NULL );
+	decode_thread = g_thread_self();
+        play_loop_track( playback );
 }
 
 static void seek( InputPlayback * data, gint time )