# HG changeset patch # User Yoshiki Yazawa # Date 1185371542 -32400 # Node ID 8702f72b3382e072508a51113f8e2d967725d034 # Parent 8916502b398c268f6f64630135a8fc21aebcf86e - reduce guard time in initiating play to avoid stuttering start. - remove DEBUG flag. diff -r 8916502b398c -r 8702f72b3382 src/cue/Makefile --- a/src/cue/Makefile Wed Jul 25 19:10:16 2007 +0900 +++ b/src/cue/Makefile Wed Jul 25 22:52:22 2007 +0900 @@ -9,7 +9,7 @@ OBJECTS = ${SOURCES:.c=.o} -CFLAGS += $(PICFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) $(ARCH_DEFINES) -I../../intl -I../.. -Wall -DDEBUG +CFLAGS += $(PICFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) $(ARCH_DEFINES) -I../../intl -I../.. -Wall CXXFLAGS = $(CFLAGS) diff -r 8916502b398c -r 8702f72b3382 src/cue/cuesheet.c --- a/src/cue/cuesheet.c Wed Jul 25 19:10:16 2007 +0900 +++ b/src/cue/cuesheet.c Wed Jul 25 22:52:22 2007 +0900 @@ -501,7 +501,7 @@ real_ip->data = data->data; real_play_thread = g_thread_create((GThreadFunc)(real_ip->plugin->play_file), (gpointer)real_ip, TRUE, NULL); - g_usleep(TRANSITION_GUARD_TIME); // XXX wait until real plugin finishes initialization. + g_usleep(10000); // wait for 10msec while real input plugin is initializing. if(real_ip->plugin->mseek) { real_ip->plugin->mseek(real_ip, finetune_seek ? finetune_seek : cue_tracks[track].index); @@ -604,6 +604,11 @@ continue; time = get_output_time(); +#if 0 +#ifdef DEBUG + printf("t = %d\n", time); +#endif +#endif if(time == 0) continue;