Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
7235303a
Commit
7235303a
authored
Sep 07, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics.
parent
3540bb57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
modules/video_output/msw/events.c
modules/video_output/msw/events.c
+17
-15
No files found.
modules/video_output/msw/events.c
View file @
7235303a
...
...
@@ -1345,29 +1345,29 @@ int CreateEventThread( vout_thread_t *p_vout )
* window (because PeekMessage has to be called from the same thread which
* created the window). */
msg_Dbg
(
p_vout
,
"creating Vout EventThread"
);
p_vout
->
p_sys
->
p_event
=
event_thread_t
*
p_event
=
p_vout
->
p_sys
->
p_event
=
vlc_object_create
(
p_vout
,
sizeof
(
event_thread_t
)
);
p_
vout
->
p_sys
->
p_
event
->
p_vout
=
p_vout
;
p_
vout
->
p_sys
->
p_
event
->
window_ready
=
CreateEvent
(
NULL
,
TRUE
,
FALSE
,
NULL
);
if
(
vlc_thread_create
(
p_
vout
->
p_sys
->
p_
event
,
"Vout Events Thread"
,
p_event
->
p_vout
=
p_vout
;
p_event
->
window_ready
=
CreateEvent
(
NULL
,
TRUE
,
FALSE
,
NULL
);
if
(
vlc_thread_create
(
p_event
,
"Vout Events Thread"
,
EventThread
,
0
)
)
{
msg_Err
(
p_vout
,
"cannot create Vout EventThread"
);
CloseHandle
(
p_
vout
->
p_sys
->
p_
event
->
window_ready
);
vlc_object_release
(
p_
vout
->
p_sys
->
p_
event
);
p_
vout
->
p_sys
->
p_
event
=
NULL
;
CloseHandle
(
p_event
->
window_ready
);
vlc_object_release
(
p_event
);
p_event
=
NULL
;
return
0
;
}
WaitForSingleObject
(
p_
vout
->
p_sys
->
p_
event
->
window_ready
,
INFINITE
);
CloseHandle
(
p_
vout
->
p_sys
->
p_
event
->
window_ready
);
WaitForSingleObject
(
p_event
->
window_ready
,
INFINITE
);
CloseHandle
(
p_event
->
window_ready
);
if
(
p_
vout
->
p_sys
->
p_
event
->
b_error
)
if
(
p_event
->
b_error
)
{
msg_Err
(
p_vout
,
"Vout EventThread failed"
);
return
0
;
}
vlc_object_attach
(
p_
vout
->
p_sys
->
p_
event
,
p_vout
);
vlc_object_attach
(
p_event
,
p_vout
);
msg_Dbg
(
p_vout
,
"Vout EventThread running"
);
return
1
;
...
...
@@ -1385,10 +1385,11 @@ void StopEventThread( vout_thread_t *p_vout )
if
(
p_vout
->
p_sys
->
p_event
)
{
vlc_object_detach
(
p_vout
->
p_sys
->
p_event
);
event_thread_t
*
p_event
=
p_vout
->
p_sys
->
p_event
;
vlc_object_detach
(
p_event
);
/* Kill Vout EventThread */
vlc_object_kill
(
p_
vout
->
p_sys
->
p_
event
);
vlc_object_kill
(
p_event
);
/* we need to be sure Vout EventThread won't stay stuck in
* GetMessage, so we send a fake message */
...
...
@@ -1397,10 +1398,11 @@ void StopEventThread( vout_thread_t *p_vout )
PostMessage
(
p_vout
->
p_sys
->
hwnd
,
WM_NULL
,
0
,
0
);
}
vlc_thread_join
(
p_
vout
->
p_sys
->
p_
event
);
vlc_object_release
(
p_
vout
->
p_sys
->
p_
event
);
vlc_thread_join
(
p_event
);
vlc_object_release
(
p_event
);
}
if
(
!
(
p_vout
->
p_sys
->
i_changes
&
SWITCHING_MODE_FLAG
)
)
vlc_mutex_destroy
(
&
p_vout
->
p_sys
->
lock
);
}
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