changeset 1465:25ab2e475f46 trunk

[svn] - seek by track index timestamp
author nenolod
date Wed, 02 Aug 2006 18:15:47 -0700
parents 4a72485a5cff
children 958acf486d32
files ChangeLog Plugins/Input/cue/cuesheet.c
diffstat 2 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Aug 02 18:12:58 2006 -0700
+++ b/ChangeLog	Wed Aug 02 18:15:47 2006 -0700
@@ -1,3 +1,13 @@
+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
+  if that file can't be found, then take no action (this is how MPlayer behaves, anyway.)
+  
+
+  Changes:        Modified:
+  +48 -6          trunk/Plugins/Input/cue/cuesheet.c  
+
+
 2006-08-03 00:52:07 +0000  William Pitcock <nenolod@nenolod.net>
   revision [1840]
   - ok, lets use real URIs here
--- a/Plugins/Input/cue/cuesheet.c	Wed Aug 02 18:12:58 2006 -0700
+++ b/Plugins/Input/cue/cuesheet.c	Wed Aug 02 18:15:47 2006 -0700
@@ -135,7 +135,7 @@
 {
         gchar *path2 = g_strdup(uri + 6);
         gchar *_path = strchr(path2, '?');
-	gint track;
+	gint track = 0;
 	FILE *f;
 
         if (_path != NULL && *_path == '?')
@@ -152,7 +152,10 @@
 	real_ip = input_check_file(cue_file, FALSE);
 
 	if (real_ip != NULL)
+	{
 		real_ip->play_file(cue_file);
+		real_ip->seek(cue_tracks[track].index);
+	}
 
 	free_cue_info();
 }