# HG changeset patch # User Yoshiki Yazawa # Date 1185358216 -32400 # Node ID 8916502b398c268f6f64630135a8fc21aebcf86e # Parent da987606127e0e3f6738522a0c1a8bfd4a81dbfb make sure thread pointer to be NULL if corresponding thread doesn't exist. diff -r da987606127e -r 8916502b398c src/cue/Makefile --- a/src/cue/Makefile Wed Jul 25 18:53:09 2007 +0900 +++ b/src/cue/Makefile Wed Jul 25 19:10:16 2007 +0900 @@ -9,7 +9,7 @@ OBJECTS = ${SOURCES:.c=.o} -CFLAGS += $(PICFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) $(ARCH_DEFINES) -I../../intl -I../.. -Wall +CFLAGS += $(PICFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) $(ARCH_DEFINES) -I../../intl -I../.. -Wall -DDEBUG CXXFLAGS = $(CFLAGS) diff -r da987606127e -r 8916502b398c src/cue/cuesheet.c --- a/src/cue/cuesheet.c Wed Jul 25 18:53:09 2007 +0900 +++ b/src/cue/cuesheet.c Wed Jul 25 19:10:16 2007 +0900 @@ -54,9 +54,9 @@ static void cue_cleanup(void); static gpointer watchdog_func(gpointer data); -GThread *watchdog_thread; -GThread *play_thread; -GThread *real_play_thread; +static GThread *watchdog_thread = NULL; +static GThread *play_thread = NULL; +static GThread *real_play_thread = NULL; static GMutex *cue_mutex; static GCond *cue_cond; @@ -342,6 +342,8 @@ #ifdef DEBUG g_print("i: stop(real_ip) finished\n"); #endif + real_play_thread = NULL; + if (data != NULL) data->playing = 0; if (caller_ip != NULL)