Of course there should be a user setting to allow control of this.
Not everyone would want the system to be kept alive when the video is paused.
I would have made a patch myself but i'm unfamiliar with vlc code. My first impression of it during a quick look of the player part is messy. Reminds me of my kids room.
Volunteer's asking for volunteers. No wonder nothing gets done.
I know what code to add. I just do not know where to put it.
The code were 'SetThreadExecutionState' is called seem to be a display module.
It does not give a clear indication of where the player respond to the pause / play events.
As shown above. You have to do that in the pause and unpause events.
That is the patch.
I have looked at the code and i have not a clue of where to add this code.
Put this in the paused event:
'SetThreadExecutionState( ES_SYSTEM_REQUIRED | ES_CONTINUOUS );'
Put this in the unpaused event:
'SetThreadExecutionState( ES_DISPLAY_REQUIRED | ES_SYSTEM_REQUIRED | ES_CONTINUOUS );'
I could write the code and make a patch you just have to tell me were to to it.
So the volunteer needs a more experienced vlc volunteer to help.