Skip to content

Commit

Permalink
fix: Fixed the issue that MPV library could not be found (#503)
Browse files Browse the repository at this point in the history
Fixed the issue that MPV library could not be found

Bug: https://pms.uniontech.com/bug-view-265013.html
Log: Fixed the issue that MPV library could not be found
  • Loading branch information
pengfeixx authored Aug 14, 2024
1 parent 611cca4 commit 84a9aa5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/libdmr/compositing_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,7 @@ bool CompositingManager::isMpvExists()
QString path = QLibraryInfo::location(QLibraryInfo::LibrariesPath);
dir.setPath(path);
static QStringList list = dir.entryList(QStringList() << (QString("libmpv.so") + "*"), QDir::NoDotAndDotDot | QDir::Files);
if (list.contains("libmpv.so")) {
return true;
}
return false;
return !list.isEmpty();
}

bool CompositingManager::isZXIntgraphics() const
Expand Down

0 comments on commit 84a9aa5

Please sign in to comment.