<p dir="ltr">I will revise what I wrote.<br>
</p>
<br><div class="gmail_quote"><div dir="ltr">On Tue, 28 Mar 2017, 11:26 Filip Roséen, <<a href="mailto:filip@atch.se">filip@atch.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u class="gmail_msg"></u>
<div class="gmail_msg">
<p class="gmail_msg">Hi Andrei,</p>
<p class="gmail_msg">Your preprocessor directives are not standard compliant, I am not sure what preprocessor that accepts such blocks; but we cannot have such in the codebase.</p>
<p class="gmail_msg">I have honestly not stumbled across a preprocessor that would allow a <code class="gmail_msg">#if</code>-directive without a corresponding <code class="gmail_msg">#endif</code>, so out of curiosity;</p>
<ul class="gmail_msg">
<li class="gmail_msg">what preprocessor is it that accepts <code class="gmail_msg">#if</code> with a block denoted by <code class="gmail_msg">{</code> and <code class="gmail_msg">}</code> without a closing <code class="gmail_msg">#endif</code>?</li>
</ul></div><div class="gmail_msg">
<p class="gmail_msg">On 2017-03-28 09:56, <a href="mailto:andrei.ciurea96@gmail.com" class="gmail_msg" target="_blank">andrei.ciurea96@gmail.com</a> wrote:</p>
</div><div class="gmail_msg"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050" class="gmail_msg"><pre class="gmail_msg"><code class="gmail_msg"> From: Andrei Ciurea <<a href="mailto:andrei.ciurea96@gmail.com" class="gmail_msg" target="_blank">andrei.ciurea96@gmail.com</a>>
---
src/playlist/control.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/playlist/control.c b/src/playlist/control.c
index 2da525a2d6..afb5a88aca 100644
--- a/src/playlist/control.c
+++ b/src/playlist/control.c
@@ -25,6 +25,11 @@
# include "config.h"
#endif
+ #if (_WIN32)
+ {
+ #include <windows.h>
+ }
+
#include <vlc_common.h>
#include "vlc_playlist.h"
#include "playlist_internal.h"
@@ -107,12 +112,20 @@ static void playlist_vaControl( playlist_t *p_playlist, int i_query,
pl_priv(p_playlist)->request.p_node = get_current_status_node( p_playlist );
pl_priv(p_playlist)->request.p_item = get_current_status_item( p_playlist );
pl_priv(p_playlist)->request.</code></pre></blockquote></div><div class="gmail_msg"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050" class="gmail_msg"><pre class="gmail_msg"><code class="gmail_msg">i_skip = 0;
+ #if (_WIN32)
+ {
+ SetThreadExecutionState?( ES_DISPLAY_REQUIRED | ES_SYSTEM_REQUIRED | ES_CONTINUOUS );
+ }
}
- else
+ else{
if( var_GetInteger( pl_priv(p_playlist)->p_input, "state" ) == PAUSE_S )
var_SetInteger( pl_priv(p_playlist)->p_input, "state", PLAYING_S );
else
var_SetInteger( pl_priv(p_playlist)->p_input, "state", PAUSE_S );
+ #if(_WIN32){
+ SetThreadExecutionState?( ES_SYSTEM_REQUIRED | ES_CONTINUOUS );
+ }
+ }
break;
case PLAYLIST_SKIP:
--
2.11.0
_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
<a href="https://mailman.videolan.org/listinfo/vlc-devel" class="gmail_msg" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a></code></pre>
</blockquote>
</div>
_______________________________________________<br class="gmail_msg">
vlc-devel mailing list<br class="gmail_msg">
To unsubscribe or modify your subscription options:<br class="gmail_msg">
<a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer" class="gmail_msg" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a></blockquote></div>