Mercurial > audlegacy-plugins
changeset 1357:cf46ed0ee590
musepack: new threading model
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Mon, 23 Jul 2007 19:20:21 -0500 |
parents | 996430ebc1c8 |
children | 32cdf1af58f2 c75fd6894758 |
files | src/musepack/libmpc.cxx |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/musepack/libmpc.cxx Mon Jul 23 19:19:29 2007 -0500 +++ b/src/musepack/libmpc.cxx Mon Jul 23 19:20:21 2007 -0500 @@ -304,7 +304,8 @@ mpcDecoder.isAlive = true; mpcDecoder.isOutput = false; mpcDecoder.isPause = false; - threadHandle = g_thread_create(GThreadFunc(decodeStream), (void *) g_strdup(data->filename), TRUE, NULL); + threadHandle = g_thread_self(); + decodeStream((void *) g_strdup(data->filename)); } static void mpcStop(InputPlayback *data) @@ -763,7 +764,6 @@ free(track.display); track.display = NULL; } - g_thread_exit(NULL); return 0; }