Skip to content

Commit 4f6d023

Browse files
committed
Avoid passing -stop-xscreensaver to mplayer on non-X11 systems
Signed-off-by: Alexander Golubev <[email protected]>
1 parent 23a8f69 commit 4f6d023

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mplayeroptions.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,13 @@ void MplayerProcess::setOption(const QString & option_name, const QVariant & val
134134
// Nothing to do
135135
}
136136
else
137+
#ifdef OS_UNIX_NOT_MAC
137138
if (option_name == "stop-xscreensaver") {
138139
bool stop_ss = value.toBool();
139140
if (stop_ss) arg << "-stop-xscreensaver"; else arg << "-nostop-xscreensaver";
140141
}
141142
else
143+
#endif
142144
if (option_name == "correct-pts") {
143145
bool b = value.toBool();
144146
if (b) arg << "-correct-pts"; else arg << "-nocorrect-pts";

0 commit comments

Comments
 (0)