make ogg reading errors non-fatal, fixes bug #51

This commit is contained in:
Ron Pedde 2006-04-08 06:11:28 +00:00
parent 66fa97e8d1
commit 5ce3ebbb86

View File

@ -32,7 +32,7 @@ int scan_get_ogginfo(char *filename, MP3FILE *pmp3) {
f = fopen(filename, "rb"); f = fopen(filename, "rb");
if (f == NULL) { if (f == NULL) {
DPRINTF(E_FATAL, L_SCAN, DPRINTF(E_LOG, L_SCAN,
"Error opening input file \"%s\": %s\n", filename, "Error opening input file \"%s\": %s\n", filename,
strerror(errno)); strerror(errno));
return FALSE; return FALSE;
@ -45,7 +45,7 @@ int scan_get_ogginfo(char *filename, MP3FILE *pmp3) {
if (ov_open(f, &vf, NULL, 0) != 0) { if (ov_open(f, &vf, NULL, 0) != 0) {
fclose(f); fclose(f);
DPRINTF(E_FATAL, L_SCAN, DPRINTF(E_LOG, L_SCAN,
"Error opening Vorbis stream in \"%s\"\n", filename); "Error opening Vorbis stream in \"%s\"\n", filename);
return FALSE; return FALSE;
} }