changeset 1466:958acf486d32 trunk

[svn] - more stuff
author nenolod
date Wed, 02 Aug 2006 18:54:31 -0700
parents 25ab2e475f46
children 6fd38612425b
files ChangeLog Plugins/Input/cue/cuesheet.c
diffstat 2 files changed, 27 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Aug 02 18:15:47 2006 -0700
+++ b/ChangeLog	Wed Aug 02 18:54:31 2006 -0700
@@ -1,3 +1,12 @@
+2006-08-03 01:15:47 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [1844]
+  - seek by track index timestamp
+  
+
+  Changes:        Modified:
+  +4 -1           trunk/Plugins/Input/cue/cuesheet.c  
+
+
 2006-08-03 01:12:58 +0000  William Pitcock <nenolod@nenolod.net>
   revision [1842]
   - when we play from a cuefile, start playing from the file defined in the cuefile
--- a/Plugins/Input/cue/cuesheet.c	Wed Aug 02 18:15:47 2006 -0700
+++ b/Plugins/Input/cue/cuesheet.c	Wed Aug 02 18:54:31 2006 -0700
@@ -36,6 +36,8 @@
 static void play(gchar *uri);
 static void play_cue_uri(gchar *uri);
 static gint get_time(void);
+static void seek(gint time);
+static void stop(void);
 
 static gchar *cue_performer = NULL;
 static gchar *cue_title = NULL;
@@ -65,9 +67,9 @@
 	is_our_file,
 	NULL,		/* audio cd */
 	play,
-	NULL,
+	stop,
 	NULL,
-	NULL,
+	seek,
 	NULL,		/* set eq */
 	get_time,
 	NULL,
@@ -131,6 +133,18 @@
 	play_cue_uri(uri);
 }
 
+static void seek(gint time)
+{
+	if (real_ip != NULL)
+		real_ip->seek(time);
+}
+
+static void stop(void)
+{
+	if (real_ip != NULL)
+		real_ip->stop();
+}
+
 static void play_cue_uri(gchar *uri)
 {
         gchar *path2 = g_strdup(uri + 6);
@@ -153,6 +167,8 @@
 
 	if (real_ip != NULL)
 	{
+		set_current_input_plugin(real_ip);
+		real_ip->output = cue_ip.output;
 		real_ip->play_file(cue_file);
 		real_ip->seek(cue_tracks[track].index);
 	}