changeset 1365:8702f72b3382

- reduce guard time in initiating play to avoid stuttering start. - remove DEBUG flag.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Wed, 25 Jul 2007 22:52:22 +0900
parents 8916502b398c
children 4c43c38bd033
files src/cue/Makefile src/cue/cuesheet.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
 
--- 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;