changeset 72:510b147fa744 trunk

[svn] - clarify is_our_file()... however, it's still a tad borked
author nenolod
date Sun, 01 Oct 2006 00:57:11 -0700
parents 5b0619b09745
children fdfe583c3110
files ChangeLog src/cue/cuesheet.c
diffstat 2 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Oct 01 00:05:37 2006 -0700
+++ b/ChangeLog	Sun Oct 01 00:57:11 2006 -0700
@@ -1,3 +1,13 @@
+2006-10-01 07:05:37 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [142]
+  Detect duration:
+  - this took a lot of brute forcing
+  - oh, and apparently apple has a sense of humour about their format, it uses a samplesize multiple of 251.
+  
+  trunk/src/alac/plugin.c |    8 +++++++-
+  1 file changed, 7 insertions(+), 1 deletion(-)
+
+
 2006-10-01 06:25:06 +0000  William Pitcock <nenolod@nenolod.net>
   revision [140]
   - fix memory leaks
--- a/src/cue/cuesheet.c	Sun Oct 01 00:05:37 2006 -0700
+++ b/src/cue/cuesheet.c	Sun Oct 01 00:57:11 2006 -0700
@@ -89,7 +89,6 @@
 static gboolean is_our_file(gchar *filename)
 {
 	gchar *ext;
-	gboolean ret = FALSE;
 	
 	/* is it a cue:// URI? */
 	if (!strncasecmp(filename, "cue://", 6))
@@ -103,7 +102,6 @@
 	if (!strncasecmp(ext, ".cue", 4))
 	{
 		gint i;
-		ret = -1;
 
 		/* add the files, build cue urls, etc. */
 		cache_cue_file(filename);
@@ -119,7 +117,7 @@
 		free_cue_info();
 	}
 
-	return ret;
+	return -1;
 }
 
 static gint get_time(void)