<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<p>Hi Andrei,</p>
<p>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>I have honestly not stumbled across a preprocessor that would allow a <code>#if</code>-directive without a corresponding <code>#endif</code>, so out of curiosity;</p>
<ul>
<li>what preprocessor is it that accepts <code>#if</code> with a block denoted by <code>{</code> and <code>}</code> without a closing <code>#endif</code>?</li>
</ul>
<p>On 2017-03-28 09:56, andrei.ciurea96@gmail.com wrote:</p>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050">
<pre><code> From: Andrei Ciurea <andrei.ciurea96@gmail.com>
---
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.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:
https://mailman.videolan.org/listinfo/vlc-devel</code></pre>
</blockquote>
</body>
</html>