Skip to content

Commit

Permalink
fix: Adapt to Jingjiawei graphics card application and call libdmr to…
Browse files Browse the repository at this point in the history
… play videos

Adapt to Jingjiawei graphics card application and call libdmr to play videos

Bug: https://pms.uniontech.com/bug-view-261843.html
Log: Adapt to Jingjiawei graphics card application and call libdmr to play videos
  • Loading branch information
myk1343 authored and deepin-bot[bot] committed Jun 27, 2024
1 parent c6d80c5 commit a85cc26
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 @@ -1314,6 +1314,9 @@ void MpvProxy::refreshDecode()
my_set_property(m_handle, "hwdec", "auto");
}
}
#ifdef _LIBDMR_
my_set_property(m_handle, "vo", "libmpv,opengl-cb");
#endif
} else if (X100GPU.exists() && X100VPU.exists()) {
my_set_property(m_handle, "hwdec", "ftomx-copy");
my_set_property(m_handle, "vo", "gpu");
Expand Down Expand Up @@ -1382,6 +1385,9 @@ void MpvProxy::refreshDecode()
}else {
my_set_property(m_handle, "hwdec", "auto");
}
#ifdef _LIBDMR_
my_set_property(m_handle, "vo", "libmpv,opengl-cb");
#endif
} else if (X100GPU.exists() && X100VPU.exists()) {
my_set_property(m_handle, "hwdec", "ftomx-copy");
my_set_property(m_handle, "vo", "gpu");
Expand Down

0 comments on commit a85cc26

Please sign in to comment.