comparison src/cue/cuesheet.c @ 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 ac74515f80c1
children fdfe583c3110
comparison
equal deleted inserted replaced
71:5b0619b09745 72:510b147fa744
87 }; 87 };
88 88
89 static gboolean is_our_file(gchar *filename) 89 static gboolean is_our_file(gchar *filename)
90 { 90 {
91 gchar *ext; 91 gchar *ext;
92 gboolean ret = FALSE;
93 92
94 /* is it a cue:// URI? */ 93 /* is it a cue:// URI? */
95 if (!strncasecmp(filename, "cue://", 6)) 94 if (!strncasecmp(filename, "cue://", 6))
96 return TRUE; 95 return TRUE;
97 96
101 return FALSE; 100 return FALSE;
102 101
103 if (!strncasecmp(ext, ".cue", 4)) 102 if (!strncasecmp(ext, ".cue", 4))
104 { 103 {
105 gint i; 104 gint i;
106 ret = -1;
107 105
108 /* add the files, build cue urls, etc. */ 106 /* add the files, build cue urls, etc. */
109 cache_cue_file(filename); 107 cache_cue_file(filename);
110 108
111 for (i = 0; i < last_cue_track; i++) 109 for (i = 0; i < last_cue_track; i++)
117 } 115 }
118 116
119 free_cue_info(); 117 free_cue_info();
120 } 118 }
121 119
122 return ret; 120 return -1;
123 } 121 }
124 122
125 static gint get_time(void) 123 static gint get_time(void)
126 { 124 {
127 return get_output_time(); 125 return get_output_time();