Commit f5e66246 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

flac: Catch FLAC::Metadata::get_streaminfo failing

CCBUG: 452594
parent 8e11de91
......@@ -466,7 +466,10 @@ bool K3bFLACDecoderFactory::canDecode( const QUrl& url )
}
FLAC::Metadata::StreamInfo info = FLAC::Metadata::StreamInfo();
FLAC::Metadata::get_streaminfo(url.toLocalFile().toLatin1(), info);
if (!FLAC::Metadata::get_streaminfo(url.toLocalFile().toLatin1(), info)) {
qDebug() << "(K3bFLACDecoder) " << url.toLocalFile() << ": get_streaminfo failed";
return false;
}
if((info.get_channels() <= 2) &&
(info.get_bits_per_sample() <= 16)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment