Force libmpv to use the "libmpv" video output (#1381)
Starting from version 0.38.0, libmpv stopped using the "libmpv" video
output ("vo" option) by default, which ends up causing mpv to spawn its
own, separate and detached window, instead of just embedding itself
onto RSS Guard's internal media player.
Upstream commit: 0e441525cf
Note: This option is only set when building RSS Guard with the
"MEDIAPLAYER_LIBMPV_OPENGL" option set to "ON", since local testing
showed it's not necessary otherwise.
Co-authored-by: martinrotter <martinrotter@users.noreply.github.com>
This commit is contained in:
parent
2144c07b90
commit
024a31ef36
@ -54,6 +54,11 @@ LibMpvBackend::LibMpvBackend(Application* app, QWidget* parent)
|
||||
mpv_set_option_string(m_mpvHandle, "config", "yes");
|
||||
mpv_set_option_string(m_mpvHandle, "script-opts", "osc-idlescreen=no");
|
||||
mpv_set_option_string(m_mpvHandle, "hwdec", "auto");
|
||||
|
||||
#if defined(MEDIAPLAYER_LIBMPV_OPENGL)
|
||||
mpv_set_option_string(m_mpvHandle, "vo", "libmpv");
|
||||
#endif
|
||||
|
||||
mpv_set_option_string(m_mpvHandle, "osd-playing-msg", "${media-title}");
|
||||
mpv_set_option_string(m_mpvHandle, "osc", "yes");
|
||||
mpv_set_option_string(m_mpvHandle, "input-cursor", "yes");
|
||||
|
Loading…
x
Reference in New Issue
Block a user