Mercurial > audlegacy-plugins
comparison src/cdaudio/cdinfo.c @ 245:d58221dfced1 trunk
[svn] - remove dead and pointless cdindex code... CDIndex has been nonexistant
since 1999
author | nenolod |
---|---|
date | Tue, 14 Nov 2006 12:03:25 -0800 |
parents | d127b22eb601 |
children | 597c89a37d07 |
comparison
equal
deleted
inserted
replaced
244:e6992f15513a | 245:d58221dfced1 |
---|---|
169 | 169 |
170 | 170 |
171 void | 171 void |
172 cdda_cdinfo_write_file(guint32 cddb_discid, cdinfo_t * cdinfo) | 172 cdda_cdinfo_write_file(guint32 cddb_discid, cdinfo_t * cdinfo) |
173 { | 173 { |
174 /* | |
175 * We currently identify cdinfo on disk with the CDDB-discid. | |
176 * Maybe it would be smarter to use the cdindex id instead? | |
177 */ | |
178 | |
179 gchar *filename; | 174 gchar *filename; |
180 RcFile *rcfile; | 175 RcFile *rcfile; |
181 gchar sectionname[10], trackstr[16]; | 176 gchar sectionname[10], trackstr[16]; |
182 gint i, numtracks = cddb_discid & 0xff; | 177 gint i, numtracks = cddb_discid & 0xff; |
183 | 178 |
230 gint i, numtracks = cddb_discid & 0xff; | 225 gint i, numtracks = cddb_discid & 0xff; |
231 gboolean track_found; | 226 gboolean track_found; |
232 | 227 |
233 sprintf(sectionname, "%08x", cddb_discid); | 228 sprintf(sectionname, "%08x", cddb_discid); |
234 | 229 |
235 // filename = g_strconcat(g_get_home_dir(), "/.audacious/cdinfo", NULL); | |
236 | |
237 filename = | 230 filename = |
238 g_strconcat(g_get_home_dir(), "/", BMP_RCPATH, "/cdinfo", NULL); | 231 g_strconcat(g_get_home_dir(), "/", BMP_RCPATH, "/cdinfo", NULL); |
239 if ((rcfile = bmp_rcfile_open(filename)) == NULL) { | 232 if ((rcfile = bmp_rcfile_open(filename)) == NULL) { |
240 g_free(filename); | 233 g_free(filename); |
241 return FALSE; | 234 return FALSE; |