Mercurial > audlegacy-plugins
changeset 1356:996430ebc1c8
metronom: new threading model
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Mon, 23 Jul 2007 19:19:29 -0500 |
parents | 0428dcce1d45 |
children | cf46ed0ee590 |
files | src/metronom/metronom.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)