Skip to content

Commit

Permalink
fix: Fixed the audio issue under Treeland
Browse files Browse the repository at this point in the history
Fixed the audio issue under Treeland

Log: Fixed the audio issue under Treeland
  • Loading branch information
pengfeixx committed Dec 9, 2024
1 parent 030ebc8 commit e25ab87
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/backends/mpv/mpv_proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
#include <QX11Info>
#include <QLibrary>
#include <va/va_x11.h>
#include <DSysInfo>

DCORE_USE_NAMESPACE

namespace dmr {
using namespace mpv::qt;
Expand Down Expand Up @@ -460,6 +463,10 @@ mpv_handle *MpvProxy::mpv_init()
}
}
#endif
if (utils::check_wayland_env()) {
qInfo() << "V25 set ao auto";
my_set_property(pHandle, "ao", "auto");
}

if (QFile::exists("/sys/bus/pci/drivers/ljmcore")) {
my_set_property(pHandle, "vo", "vaapi");
Expand Down

0 comments on commit e25ab87

Please sign in to comment.