mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-17 17:39:56 -04:00
make ogg reading errors non-fatal, fixes bug #51
This commit is contained in:
parent
66fa97e8d1
commit
5ce3ebbb86
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user