Skip to content

Commit

Permalink
fix: 加入音频参数 pulse-allow-suspended=yes
Browse files Browse the repository at this point in the history
音频参数 pulse-allow-suspended=yes

Bug: https://pms.uniontech.com/bug-view-282287.html
Log: 加入音频参数 pulse-allow-suspended=yes
  • Loading branch information
myk1343 authored and deepin-bot[bot] committed Feb 11, 2025
1 parent bbc1759 commit cf40318
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/backends/mpv/mpv_proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,9 @@ mpv_handle *MpvProxy::mpv_init()
++p;
}

if(utils::check_wayland_env()) {
my_set_property(m_handle, "pulse-allow-suspended", "yes");
}
//设置hwdec和vo配置
CompositingManager::get().getMpvConfig(m_pConfig);
QMap<QString, QString>::iterator iter = m_pConfig->begin();
Expand Down Expand Up @@ -1441,6 +1444,9 @@ void MpvProxy::refreshDecode()
auto codec = currentInfo.mi.videoCodec();
my_set_property(m_handle, "hwdec-codecs", codec.toLower());

if(utils::check_wayland_env()) {
my_set_property(m_handle, "pulse-allow-suspended", "yes");
}
//play.conf
CompositingManager::get().getMpvConfig(m_pConfig);
QMap<QString, QString>::iterator iter = m_pConfig->begin();
Expand Down

0 comments on commit cf40318

Please sign in to comment.