Commit 2491cc70 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Accept WAV files in K3bLibsndfileDecoderFactory::canDecode

The comment said
   we exclude only WAVE as there is another plugin for this
i guess refering to the K3bWaveDecoder, but with the file from bug
399056 K3bWaveDecoder doesn't know how to handler it and
K3bLibsndfileDecoder does

Also K3bWaveDecoder is always running first than K3bLibsndfileDecoder in
AudioDecoderFactory::createDecoder so the new code is only really used
if the other one fails

BUGS: 399056
parent d0c94e1c
...@@ -221,8 +221,7 @@ bool K3bLibsndfileDecoderFactory::canDecode( const QUrl& url ) ...@@ -221,8 +221,7 @@ bool K3bLibsndfileDecoderFactory::canDecode( const QUrl& url )
qDebug() << "(K3bLibsndfileDecoder) " << sf_strerror(sndfile); qDebug() << "(K3bLibsndfileDecoder) " << sf_strerror(sndfile);
return false; return false;
} }
//we exclude only WAVE as there is another plugin for this else if ( infos.format ) {
else if ( infos.format && ((infos.format & SF_FORMAT_TYPEMASK) != SF_FORMAT_WAV) ) {
//retrieve infos (name) about the format: //retrieve infos (name) about the format:
SF_FORMAT_INFO format_info; SF_FORMAT_INFO format_info;
......
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