changeset 3325:6f6f38157229 trunk

Fix the thread join issue.
author William Pitcock <nenolod@atheme-project.org>
date Fri, 10 Aug 2007 20:23:33 -0500
parents e5cc5e8b7021
children 6dbb73b8e28c
files src/audacious/playback.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/playback.c	Fri Aug 10 20:10:13 2007 -0500
+++ b/src/audacious/playback.c	Fri Aug 10 20:23:33 2007 -0500
@@ -334,7 +334,6 @@
     playback->plugin = entry->decoder;
     playback->output = &psuedo_output_plugin;
     playback->filename = g_strdup(entry->filename);
-    playback->thread = g_thread_self();
     playback->pb_ready_mutex = g_mutex_new();
     playback->pb_ready_cond = g_cond_new();
     playback->pb_ready_val = 0;
@@ -342,7 +341,7 @@
     
     set_current_input_playback(playback);
 
-    g_thread_create(playback_monitor_thread, playback, TRUE, NULL);
+    playback->thread = g_thread_create(playback_monitor_thread, playback, TRUE, NULL);
 
     return TRUE;
 }