changeset 2162:c4b97a9c1f6b

remove get_time().
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Tue, 13 Nov 2007 05:11:47 +0900
parents 19725f003ddf
children bcd729411d7c
files src/cue/Makefile src/cue/cuesheet.c
diffstat 2 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/cue/Makefile	Tue Nov 06 15:17:07 2007 -0600
+++ b/src/cue/Makefile	Tue Nov 13 05:11:47 2007 +0900
@@ -8,5 +8,5 @@
 plugindir := ${plugindir}/${INPUT_PLUGIN_DIR}
 
 CFLAGS += ${PLUGIN_CFLAGS}
-CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} -I../../intl -I../..
+CPPFLAGS += ${PLUGIN_CPPFLAGS} ${MOWGLI_CFLAGS} ${DBUS_CFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} ${PANGO_CFLAGS} ${ARCH_DEFINES} -I../../intl -I../.. -DDEBUG
 LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${PANGO_LIBS} ${DBUS_LIB} ${MOWGLI_LIBS}
--- a/src/cue/cuesheet.c	Tue Nov 06 15:17:07 2007 -0600
+++ b/src/cue/cuesheet.c	Tue Nov 13 05:11:47 2007 +0900
@@ -39,7 +39,6 @@
 static gboolean is_our_file(gchar *filespec);
 static void play(InputPlayback *data);
 static void play_cue_uri(InputPlayback *data, gchar *uri);
-static gint get_time(InputPlayback *data);
 static void seek(InputPlayback *data, gint time);
 static void stop(InputPlayback *data);
 static void cue_pause(InputPlayback *data, short);
@@ -97,7 +96,6 @@
 	.stop = stop,
 	.pause = cue_pause,
 	.seek = seek,
-	.get_time = get_time,
 	.cleanup = cue_cleanup,		/* cleanup */
 	.get_song_tuple = get_tuple,
 };
@@ -177,11 +175,6 @@
 	return FALSE;
 }
 
-static gint get_time(InputPlayback *playback)
-{
-	return playback->output->output_time();
-}
-
 static void play(InputPlayback *data)
 {
     gchar *uri = g_strdup(data->filename);
@@ -469,6 +462,8 @@
 		real_ip->plugin->output = cue_ip.output;
 		real_ip->filename = cue_file;
 
+		data->playing = 1;
+
 		real_play_thread = g_thread_create((GThreadFunc)(real_ip->plugin->play_file), (gpointer)real_ip, TRUE, NULL);
 		g_usleep(50000); // wait for 50msec while real input plugin is initializing.