Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
e68cc628
Commit
e68cc628
authored
Nov 04, 2010
by
Geoffroy Couprie
Committed by
Jean-Baptiste Kempf
Nov 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows: remove another call to GetProcAddress in vout plugins
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
a35cc84e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
modules/video_output/msw/events.c
modules/video_output/msw/events.c
+2
-15
No files found.
modules/video_output/msw/events.c
View file @
e68cc628
...
...
@@ -224,7 +224,6 @@ static void *EventThread( void *p_this )
vout_display_t
*
vd
=
p_event
->
vd
;
MSG
msg
;
POINT
old_mouse_pos
=
{
0
,
0
},
mouse_pos
;
HMODULE
hkernel32
;
int
canc
=
vlc_savecancel
();
bool
b_mouse_support
=
var_InheritBool
(
p_event
->
vd
,
"mouse-events"
);
...
...
@@ -250,20 +249,8 @@ static void *EventThread( void *p_this )
}
#ifndef UNDER_CE
/* Set power management stuff */
if
(
(
hkernel32
=
GetModuleHandle
(
_T
(
"KERNEL32"
)
)
)
)
{
ULONG
(
WINAPI
*
OurSetThreadExecutionState
)(
ULONG
);
OurSetThreadExecutionState
=
(
ULONG
(
WINAPI
*
)(
ULONG
))
GetProcAddress
(
hkernel32
,
_T
(
"SetThreadExecutionState"
)
);
if
(
OurSetThreadExecutionState
)
/* Prevent monitor from powering off */
OurSetThreadExecutionState
(
ES_DISPLAY_REQUIRED
|
ES_CONTINUOUS
);
else
msg_Dbg
(
vd
,
"no support for SetThreadExecutionState()"
);
}
/* Prevent monitor from powering off */
SetThreadExecutionState
(
ES_DISPLAY_REQUIRED
|
ES_CONTINUOUS
);
#endif
/* Main loop */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment