Maybe fix crash bug when scanning library
This commit is contained in:
parent
4a61c3c900
commit
0d4e1e0bdf
@ -168,9 +168,11 @@ void Song::InitFromFile(const QString& filename, int directory_id) {
|
||||
d->compilation_ = (i == 1);
|
||||
}
|
||||
|
||||
d->bitrate_ = fileref.audioProperties()->bitrate();
|
||||
d->length_ = fileref.audioProperties()->length();
|
||||
d->samplerate_ = fileref.audioProperties()->sampleRate();
|
||||
if (fileref.audioProperties()) {
|
||||
d->bitrate_ = fileref.audioProperties()->bitrate();
|
||||
d->length_ = fileref.audioProperties()->length();
|
||||
d->samplerate_ = fileref.audioProperties()->sampleRate();
|
||||
}
|
||||
}
|
||||
|
||||
void Song::InitFromQuery(const QSqlQuery& q) {
|
||||
|
@ -160,6 +160,3 @@ desktop.path = dummy
|
||||
desktop.extra = xdg-icon-resource install --size 64 ../dist/clementine_64.png application-x-clementine ; \
|
||||
xdg-desktop-menu install --novendor ../dist/clementine.desktop
|
||||
INSTALLS += target desktop
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user