# HG changeset patch # User Christian Birchinger # Date 1186192391 -7200 # Node ID 6aaf2b06f056cc457201c79d4a44f43686b5fd74 # Parent 58ce3497879a82fe9517a68df34e3ac50e09f530 Ported to new threading model diff -r 58ce3497879a -r 6aaf2b06f056 src/sid/xmms-sid.c --- a/src/sid/xmms-sid.c Fri Aug 03 20:39:05 2007 +0200 +++ b/src/sid/xmms-sid.c Sat Aug 04 03:53:11 2007 +0200 @@ -536,7 +536,6 @@ /* Exit the playing thread */ XSDEBUG("exiting thread, bye.\n"); - XS_THREAD_EXIT(NULL); } @@ -572,19 +571,10 @@ xs_status.currSong = xs_status.tuneInfo->startTune; /* Start the playing thread! */ - xs_decode_thread = g_thread_create((GThreadFunc) xs_playthread, pb, TRUE, NULL); - if (xs_decode_thread == NULL) { - xs_error(_("Couldn't create playing thread!\n")); - xs_tuneinfo_free(xs_status.tuneInfo); - xs_status.tuneInfo = NULL; - xs_status.sidPlayer->plrDeleteSID(&xs_status); - } + xs_decode_thread = g_thread_self(); + xs_playthread(pb); - /* Okay, here the playing thread has started up and we - * return from here to XMMS. Rest is up to XMMS's GUI - * and playing thread. - */ - XSDEBUG("systems should be up?\n"); + XSDEBUG("playback is done\n"); }