[TagLibExtractor] Fix crash on invalid Speex files

Authored by bruns on Apr 30 2019, 1:51 AM.

Description

[TagLibExtractor] Fix crash on invalid Speex files

Summary:
TagLib::Ogg::Speex::File::isValid() returns true even for invalid files,
but tag() only returns a valid XiphComment when the file is valid.

Other TagLib::Ogg::* classes properly clear the valid flag when
encountering files.

See https://github.com/taglib/taglib/issues/902

BUG: 403902

Reviewers: Baloo, Frameworks, ngraham, astippich

Reviewed By: Baloo, ngraham, astippich

Subscribers: kde-frameworks-devel

Tags: Frameworks, Baloo

Differential Revision: https://phabricator.kde.org/D20913

Details

Committed
brunsApr 30 2019, 5:24 PM
Reviewer
Baloo
Differential Revision
D20913: [TagLibExtractor] Fix crash on invalid Speex files
Parents
R286:e227a7ce4587: Fix exivextractor crash with malformed files
Branches
Unknown
Tags
Unknown