Skip to content

Commit

Permalink
Avoid passing -stop-xscreensaver to mplayer on non-X11 systems
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
  • Loading branch information
Fat-Zer committed Oct 31, 2024
1 parent 23a8f69 commit 4f6d023
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mplayeroptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,13 @@ void MplayerProcess::setOption(const QString & option_name, const QVariant & val
// Nothing to do
}
else
#ifdef OS_UNIX_NOT_MAC
if (option_name == "stop-xscreensaver") {
bool stop_ss = value.toBool();
if (stop_ss) arg << "-stop-xscreensaver"; else arg << "-nostop-xscreensaver";
}
else
#endif
if (option_name == "correct-pts") {
bool b = value.toBool();
if (b) arg << "-correct-pts"; else arg << "-nocorrect-pts";
Expand Down

0 comments on commit 4f6d023

Please sign in to comment.