[vlc-commits] win32/events: use HideMouse() timer only if vout HWND exists
Hannes Domani
git at videolan.org
Wed Jan 3 13:23:03 CET 2018
vlc/vlc-3.0 | branch: master | Hannes Domani <ssbssa at yahoo.de> | Wed Jan 3 02:40:20 2018 +0100| [cc63f301e64937556ebcd3b942b7467c8f84a9ce] | committer: Jean-Baptiste Kempf
win32/events: use HideMouse() timer only if vout HWND exists
Close #19368
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit c292144a9a3dfa083fa8cf94f4023f6867724200)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=cc63f301e64937556ebcd3b942b7467c8f84a9ce
---
modules/video_output/win32/events.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/win32/events.c b/modules/video_output/win32/events.c
index 3ed20a69ab..c13c9dbd80 100644
--- a/modules/video_output/win32/events.c
+++ b/modules/video_output/win32/events.c
@@ -134,7 +134,8 @@ static void UpdateCursorMoved( event_thread_t *p_event )
{
UpdateCursor( p_event, true );
p_event->last_moved = mdate();
- SetTimer( p_event->hwnd, (UINT_PTR)p_event, p_event->hide_timeout, HideMouse );
+ if( p_event->hwnd )
+ SetTimer( p_event->hwnd, (UINT_PTR)p_event, p_event->hide_timeout, HideMouse );
}
/* Local helpers */
@@ -481,6 +482,7 @@ event_thread_t *EventThreadCreate( vout_display_t *vd)
p_event->button_pressed = 0;
p_event->psz_title = NULL;
p_event->source = vd->source;
+ p_event->hwnd = NULL;
atomic_init(&p_event->has_moved, false);
vout_display_PlacePicture(&p_event->place, &vd->source, vd->cfg, false);
More information about the vlc-commits
mailing list