* Use internal music metadata functions intead of taglib.

1) Taglib does not support MP4 or WMA/ASF without hacking it in there.
  2) Taglib is C++, so it's nice to remove that dependency.
* Use embedded album art where available.
This commit is contained in:
Justin Maggard
2009-02-25 21:16:51 +00:00
parent 2da2f6d4a1
commit b74e2d33f3
36 changed files with 4766 additions and 238 deletions

6
log.c
View File

@ -104,7 +104,7 @@ log_init(const char *fname, const char *debug)
log_level[i] = default_log_level;
}
if (!fname) // use default i.e. stderr
if (!fname) // use default i.e. stdout
return 0;
if (!(fp = fopen(fname, "a")))
@ -126,7 +126,7 @@ log_err(int level, enum _log_facility facility, char *fname, int lineno, char *f
return;
if (!log_fp)
log_fp = stderr;
log_fp = stdout;
// user log
va_start(ap, fmt);
@ -135,7 +135,7 @@ log_err(int level, enum _log_facility facility, char *fname, int lineno, char *f
va_end(ap);
// timestamp
t = time(0);
t = time(NULL);
tm = localtime(&t);
fprintf(log_fp, "[%04d/%02d/%02d %02d:%02d:%02d] ",
tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,