# HG changeset patch # User Christian Birchinger # Date 1186256231 -7200 # Node ID ab7d89bb8fcb71e63b6726b00f9787fdf1d80948 # Parent d7a0b7f3b8c015464be58e591e947024d7c9cb08 Switched to new threading model diff -r d7a0b7f3b8c0 -r ab7d89bb8fcb src/vtx/vtx.c --- a/src/vtx/vtx.c Sat Aug 04 18:51:04 2007 +0200 +++ b/src/vtx/vtx.c Sat Aug 04 21:37:11 2007 +0200 @@ -169,6 +169,9 @@ { playback->output->buffer_free (); playback->output->buffer_free (); + while (playback->output->buffer_playing()) + g_usleep(10000); + playback->playing = 0; } /* jump to time in seek_to (in seconds) */ @@ -179,10 +182,7 @@ seek_to = -1; } } - - /* close sound and release vtx file must be done in vtx_stop() */ - g_thread_exit (NULL); - + ayemu_vtx_free (&vtx); return NULL; } @@ -229,7 +229,8 @@ bmp_title_input_free(ti); playback->playing = TRUE; - play_thread = g_thread_create (play_loop, playback, TRUE, NULL); + play_thread = g_thread_self(); + play_loop(playback); } }