print error messages for faad2
git-svn-id: https://svn.musicpd.org/mpd/trunk@358 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
da969faed1
commit
097c8720ef
@ -325,6 +325,9 @@ int aac_decode(Buffer * cb, AudioFormat * af, DecoderControl * dc) {
|
|||||||
advanceAacBuffer(&b,frameInfo.bytesconsumed);
|
advanceAacBuffer(&b,frameInfo.bytesconsumed);
|
||||||
|
|
||||||
if(frameInfo.error > 0) {
|
if(frameInfo.error > 0) {
|
||||||
|
ERROR("error decoding AAC file: %s\n",dc->file);
|
||||||
|
ERROR("faad2 error: %s\n",
|
||||||
|
faacDecGetErrorMessage(frameInfo.error));
|
||||||
eof = 1;
|
eof = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -226,6 +226,9 @@ int mp4_decode(Buffer * cb, AudioFormat * af, DecoderControl * dc) {
|
|||||||
mp4BufferSize);
|
mp4BufferSize);
|
||||||
if(mp4Buffer) free(mp4Buffer);
|
if(mp4Buffer) free(mp4Buffer);
|
||||||
if(frameInfo.error > 0) {
|
if(frameInfo.error > 0) {
|
||||||
|
ERROR("error decoding MP4 file: %s\n",dc->file);
|
||||||
|
ERROR("faad2 error: %s\n",
|
||||||
|
faacDecGetErrorMessage(frameInfo.error));
|
||||||
eof = 1;
|
eof = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user