Page 1 of 1

Screensaver disabling

PostPosted: Fri May 15, 2015 9:39 am
by Vavooon
Hi.
Today i desired to fix SPPlayer's screensaver disable logic.
Currently it sets thread execution state to ES_DISPLAY_REQUIRED when playback starts and returns to ES_CONTINUOUS only after stop, so monitor keeps work in pause.
I wanted to rewrite it in order to avoid such layout.
But i noticed that mpv.exe also requests ES_DISPLAY_REQUIRED and does it better: does not stay in this state during pause.

So i think it would be better to remove screensaver disable logic from SMPlayer and let mpv do this work.
I investigated this issue only in Windows but it looks like mpv disables screensaver in all other OSs: https://github.com/mpv-player/mpv/searc ... CREENSAVER .