Skip to content

Commit e346af9

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

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
@@ -135,8 +135,10 @@ void MplayerProcess::setOption(const QString & option_name, const QVariant & val
135135
}
136136
else
137137
if (option_name == "stop-xscreensaver") {
138+
#ifdef OS_UNIX_NOT_MAC
138139
bool stop_ss = value.toBool();
139140
if (stop_ss) arg << "-stop-xscreensaver"; else arg << "-nostop-xscreensaver";
141+
#endif
140142
}
141143
else
142144
if (option_name == "correct-pts") {

0 commit comments

Comments
 (0)