changeset 1482:c371351e349c trunk

[svn] - remove pointless finetune_seek stuff. didn't work right anyway, and it works better without it.
author nenolod
date Thu, 03 Aug 2006 00:20:53 -0700
parents d84b994ac554
children 045eea000f6e
files ChangeLog Plugins/Input/cue/cuesheet.c
diffstat 2 files changed, 10 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Aug 03 00:15:58 2006 -0700
+++ b/ChangeLog	Thu Aug 03 00:20:53 2006 -0700
@@ -1,3 +1,12 @@
+2006-08-03 07:15:58 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [1876]
+  - damn typoes
+  
+
+  Changes:        Modified:
+  +2 -2           trunk/Plugins/Input/cue/cuesheet.c  
+
+
 2006-08-03 07:15:12 +0000  William Pitcock <nenolod@nenolod.net>
   revision [1874]
   - ok, try to be less seek happy on 'natural' changes
--- a/Plugins/Input/cue/cuesheet.c	Thu Aug 03 00:15:58 2006 -0700
+++ b/Plugins/Input/cue/cuesheet.c	Thu Aug 03 00:20:53 2006 -0700
@@ -50,8 +50,6 @@
 	gint index;
 } cue_tracks[MAX_CUE_TRACKS];
 static gint timeout_tag = 0;
-static gint finetune_seek = 0;
-static gint pl_seek = 0;
 
 static InputPlugin *real_ip = NULL;
 
@@ -198,8 +196,6 @@
 {
 	if (real_ip != NULL)
 		real_ip->seek(time);
-
-	pl_seek = time;
 }
 
 static void stop(void)
@@ -253,13 +249,7 @@
 		real_ip->set_info = set_info_override;
 		real_ip->output = cue_ip.output;
 		real_ip->play_file(cue_file);
-
-		if (finetune_seek == 0)
-			real_ip->seek(cue_tracks[track].index / 1000);	/* XXX: seek doesn't use frames? strange... -nenolod */
-		else
-		{
-			real_ip->seek(finetune_seek / 1000);
-		}
+		real_ip->seek(cue_tracks[track].index / 1000);	/* XXX: seek doesn't use frames? strange... -nenolod */
 	}
 
 	cur_cue_track = track;
@@ -295,22 +285,10 @@
 	gint time = get_output_time();
 	gboolean dir = FALSE;
 
-	if (finetune_seek != 0)
-	{
-		if (real_ip != NULL)
-			real_ip->seek(finetune_seek / 1000);
-
-		finetune_seek = 0;
-	}
-
 	while (time < cue_tracks[cur_cue_track].index)
 	{
 		cur_cue_track--;
 		playlist_prev();
-
-		if (time - cue_tracks[cur_cue_track].index > 1000)
-			finetune_seek = time;
-
 		dir = TRUE;
 		time = get_output_time() - 1000;
 		g_usleep(10000);
@@ -320,16 +298,10 @@
 	{
 		cur_cue_track++;
 		playlist_next();
-
-		if (cue_tracks[cur_cue_track].index - time > 1000)
-			finetune_seek = time;
-
 		time = get_output_time() + 1000;
 		g_usleep(10000);
 	}
 
-	pl_seek = 0;
-
 	return TRUE;
 }