Mercurial > audlegacy-plugins
diff src/sexypsf/plugin.c @ 1353:b5705eea23d9
sexypsf: new threading model
| author | William Pitcock <nenolod@atheme-project.org> |
|---|---|
| date | Mon, 23 Jul 2007 17:53:45 -0500 |
| parents | c39a61e6a276 |
| children | 761e17b23e0c |
line wrap: on
line diff
--- a/src/sexypsf/plugin.c Mon Jul 23 17:52:11 2007 -0500 +++ b/src/sexypsf/plugin.c Mon Jul 23 17:53:45 2007 -0500 @@ -53,7 +53,6 @@ return 0; } - void sexypsf_update(unsigned char *buffer, long count) { const int mask = ~((((16 / 8) * 2)) - 1); @@ -157,8 +156,8 @@ g_free(name); playing = 1; - dethread = g_thread_create((GThreadFunc)sexypsf_playloop, - NULL, TRUE, NULL); + dethread = g_thread_self(); + sexypsf_playloop(NULL); } }
