changeset 1397:6aaf2b06f056

Ported to new threading model
author Christian Birchinger <joker@netswarm.net>
date Sat, 04 Aug 2007 03:53:11 +0200
parents 58ce3497879a
children 13dd4f9bd4b4
files src/sid/xmms-sid.c
diffstat 1 files changed, 3 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- 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");
 }