# HG changeset patch # User William Pitcock # Date 1185236369 18000 # Node ID 996430ebc1c88f9555b0165dee90f195d59cd889 # Parent 0428dcce1d455a970df26f31161b7f267a5570f3 metronom: new threading model diff -r 0428dcce1d45 -r 996430ebc1c8 src/metronom/metronom.c --- a/src/metronom/metronom.c Mon Jul 23 17:55:01 2007 -0500 +++ b/src/metronom/metronom.c Mon Jul 23 19:19:29 2007 -0500 @@ -150,7 +150,6 @@ /* Make sure the output plugin stops prebuffering */ playback->output->buffer_free(); playback->output->buffer_free(); - g_thread_exit(NULL); } static void metronom_play(InputPlayback *playback) @@ -199,7 +198,8 @@ metronom_ip.set_info(name, -1, 16 * 44100, 44100, 1); g_free(name); playback->data = pmetronom; - play_thread = g_thread_create((GThreadFunc)play_loop, playback, TRUE, NULL); + play_thread = g_thread_self(); + play_loop(playback); } static void metronom_stop(InputPlayback *playback)