changeset 1480:a62c3f7b277b trunk

[svn] - ok, try to be less seek happy on 'natural' changes
author nenolod
date Thu, 03 Aug 2006 00:15:12 -0700
parents 825349772a96
children d84b994ac554
files ChangeLog Plugins/Input/cue/cuesheet.c
diffstat 2 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Aug 03 00:12:56 2006 -0700
+++ b/ChangeLog	Thu Aug 03 00:15:12 2006 -0700
@@ -1,3 +1,12 @@
+2006-08-03 07:12:56 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [1872]
+  - a little more fault tolerance (stick a fork in it, it's done)
+  
+
+  Changes:        Modified:
+  +37 -6          trunk/Plugins/Input/cue/cuesheet.c  
+
+
 2006-08-03 06:44:16 +0000  William Pitcock <nenolod@nenolod.net>
   revision [1870]
   - well not exactly, but this is :)
--- a/Plugins/Input/cue/cuesheet.c	Thu Aug 03 00:12:56 2006 -0700
+++ b/Plugins/Input/cue/cuesheet.c	Thu Aug 03 00:15:12 2006 -0700
@@ -307,7 +307,10 @@
 	{
 		cur_cue_track--;
 		playlist_prev();
-		finetune_seek = time;
+
+		if (time - cue_tracks[cure.cue_track].index > 1000)
+			finetune_seek = time;
+
 		dir = TRUE;
 		time = get_output_time() - 1000;
 		g_usleep(10000);
@@ -317,7 +320,10 @@
 	{
 		cur_cue_track++;
 		playlist_next();
-		finetune_seek = time;
+
+		if (cue_tracks[cure.cue_track].index - time > 1000)
+			finetune_seek = time;
+
 		time = get_output_time() + 1000;
 		g_usleep(10000);
 	}