Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
K3b
Commits
f5e66246
Commit
f5e66246
authored
Apr 15, 2022
by
Albert Astals Cid
Browse files
flac: Catch FLAC::Metadata::get_streaminfo failing
CCBUG: 452594
parent
8e11de91
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/decoder/flac/k3bflacdecoder.cpp
View file @
f5e66246
...
...
@@ -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
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment