changeset 1342:ebded68de2dd

madplug: Update plugin for new threading model.
author William Pitcock <nenolod@atheme-project.org>
date Mon, 23 Jul 2007 17:19:31 -0500
parents 4ca99d2be90e
children 36364adc29cd
files src/madplug/plugin.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/madplug/plugin.c	Tue Jul 24 00:48:58 2007 +0300
+++ b/src/madplug/plugin.c	Mon Jul 23 17:19:31 2007 -0500
@@ -464,7 +464,8 @@
     info.playback->playing = 1;
     g_mutex_unlock(pb_mutex);
 
-    decode_thread = g_thread_create(decode_loop, (void *) &info, TRUE, NULL);
+    decode_thread = g_thread_self();
+    decode_loop(&info);
 }
 
 static void audmad_pause(InputPlayback *playback, short paused)