decoder/ffmpeg: log detailed error message

This commit is contained in:
Max Kellermann
2014-12-18 22:07:38 +01:00
parent 2fd81b4932
commit e8564b4c90
4 changed files with 77 additions and 2 deletions

View File

@@ -23,6 +23,7 @@
#include "config.h"
#include "FfmpegDecoderPlugin.hxx"
#include "lib/ffmpeg/Domain.hxx"
#include "lib/ffmpeg/LogError.hxx"
#include "../DecoderAPI.hxx"
#include "FfmpegMetaData.hxx"
#include "tag/TagBuilder.hxx"
@@ -335,8 +336,7 @@ ffmpeg_send_packet(Decoder &decoder, InputStream &is,
&packet2);
if (len < 0) {
/* if error, we skip the frame */
LogDefault(ffmpeg_domain,
"decoding failed, frame skipped");
LogFfmpegError(len, "decoding failed, frame skipped");
break;
}