changeset 1267:de5d238cd42a

add gdk_threads_*() guard around playlist_set_position() so that playlist advance work again. thanks to giacomo!
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Sun, 15 Jul 2007 00:19:10 +0900
parents df2d1c5f3786
children 74e20cec44b4
files src/cue/cuesheet.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cue/cuesheet.c	Sat Jul 14 16:03:57 2007 +0900
+++ b/src/cue/cuesheet.c	Sun Jul 15 00:19:10 2007 +0900
@@ -388,7 +388,9 @@
 #ifdef DEBUG
     g_print("do_setpos: pos = %d\n\n", pos);
 #endif
+    gdk_threads_enter();
     playlist_set_position(playlist, (guint)pos);
+    gdk_threads_leave();
     g_thread_exit(NULL);
     return NULL; //dummy
 }