[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdemultimedia/juk
From: Scott Wheeler <wheeler () kde ! org>
Date: 2003-10-29 0:40:40
[Download RAW message or body]
CVS commit by wheeler:
Hopefully fix a crash that Helge was having in the case that TagLib wasn't
able to open the file (segfault in ftell()).
CCMAIL:deller@kde.org
M +4 -0 tag.cpp 1.36
--- kdemultimedia/juk/tag.cpp #1.35:1.36
@@ -46,4 +46,6 @@ Tag *Tag::createTag(const QString &fileN
if(MediaFiles::isMP3(fileName)) {
TagLib::MPEG::File file(QStringToTString(fileName));
+ if(!file.isOpen())
+ return 0;
return new Tag(fileName, &file);
}
@@ -51,4 +53,6 @@ Tag *Tag::createTag(const QString &fileN
if(MediaFiles::isOgg(fileName)) {
TagLib::Vorbis::File file(QStringToTString(fileName));
+ if(!file.isOpen())
+ return 0;
return new Tag(fileName, &file);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic