changeset 2020:adcb83632f11

playback_mutex is entirely unnecessary as there is no longer a critical section here.
author William Pitcock <nenolod@atheme.org>
date Thu, 11 Oct 2007 15:07:45 -0500
parents bf63252fb1fb
children 72c60094ad0a
files src/console/Audacious_Driver.cxx
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/console/Audacious_Driver.cxx	Thu Oct 11 18:11:28 2007 +0300
+++ b/src/console/Audacious_Driver.cxx	Thu Oct 11 15:07:45 2007 -0500
@@ -34,7 +34,6 @@
 AudaciousConsoleConfig audcfg =
 { 180, FALSE, 32000, 0, 0, FALSE, 0, FALSE };
 static GThread* decode_thread;
-static GStaticMutex playback_mutex = G_STATIC_MUTEX_INIT;
 static int console_ip_is_going;
 static volatile long pending_seek;
 extern InputPlugin console_ip;
@@ -274,7 +273,6 @@
 static void* play_loop_track( gpointer arg )
 {
         InputPlayback *playback = (InputPlayback *) arg;
-	g_static_mutex_lock( &playback_mutex );
 
 	int end_delay = 0;	
 	while ( console_ip_is_going )
@@ -318,7 +316,6 @@
 	unload_file();
 	playback->output->close_audio();
 	console_ip_is_going = 0;
-	g_static_mutex_unlock( &playback_mutex );
 	return NULL;
 }