comparison src/audacious/playback.c @ 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 d4f6507cded3
children 6dbb73b8e28c
comparison
equal deleted inserted replaced
3324:e5cc5e8b7021 3325:6f6f38157229
332 entry->decoder->output = &psuedo_output_plugin; 332 entry->decoder->output = &psuedo_output_plugin;
333 333
334 playback->plugin = entry->decoder; 334 playback->plugin = entry->decoder;
335 playback->output = &psuedo_output_plugin; 335 playback->output = &psuedo_output_plugin;
336 playback->filename = g_strdup(entry->filename); 336 playback->filename = g_strdup(entry->filename);
337 playback->thread = g_thread_self();
338 playback->pb_ready_mutex = g_mutex_new(); 337 playback->pb_ready_mutex = g_mutex_new();
339 playback->pb_ready_cond = g_cond_new(); 338 playback->pb_ready_cond = g_cond_new();
340 playback->pb_ready_val = 0; 339 playback->pb_ready_val = 0;
341 playback->set_pb_ready = playback_set_pb_ready; 340 playback->set_pb_ready = playback_set_pb_ready;
342 341
343 set_current_input_playback(playback); 342 set_current_input_playback(playback);
344 343
345 g_thread_create(playback_monitor_thread, playback, TRUE, NULL); 344 playback->thread = g_thread_create(playback_monitor_thread, playback, TRUE, NULL);
346 345
347 return TRUE; 346 return TRUE;
348 } 347 }
349 348
350 gboolean 349 gboolean