changeset 1409:32aaec642cf8

Switched to new threading model, the core doesn't accept tone:// URLs though.
author Christian Birchinger <joker@netswarm.net>
date Sun, 05 Aug 2007 19:50:25 +0200
parents a7db4a8a7b54
children cc6203a8cc9f
files src/tonegen/tonegen.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/tonegen/tonegen.c	Sun Aug 05 00:27:51 2007 +0300
+++ b/src/tonegen/tonegen.c	Sun Aug 05 19:50:25 2007 +0200
@@ -121,7 +121,6 @@
 	playback->output->buffer_free();
 	playback->output->buffer_free();
 
-	g_thread_exit(NULL);
 	return(NULL);
 }
 
@@ -202,7 +201,8 @@
 	tone_ip.set_info(name, -1, 16 * OUTPUT_FREQ, OUTPUT_FREQ, 1);
 	g_free(name);
 	playback->data = frequencies;
-	play_thread = g_thread_create((GThreadFunc)play_loop, playback, TRUE, NULL);
+	play_thread = g_thread_self();
+	play_loop(playback);
 }
 
 static void tone_stop(InputPlayback *playback)