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
ed4a1d9a
Commit
ed4a1d9a
authored
May 30, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed vout display key event thread destruction.
block_FifoWake does not work as I thought.
parent
631ebd4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/video_output/display.c
src/video_output/display.c
+5
-4
No files found.
src/video_output/display.c
View file @
ed4a1d9a
...
...
@@ -551,13 +551,15 @@ static void *VoutDisplayEventKeyDispatch(void *data)
for
(;;)
{
block_t
*
event
=
block_FifoGet
(
osys
->
event
.
fifo
);
if
(
!
event
)
return
NULL
;
int
cancel
=
vlc_savecancel
()
;
int
key
;
memcpy
(
&
key
,
event
->
p_buffer
,
sizeof
(
key
));
vout_SendEventKey
(
osys
->
vout
,
key
);
block_Release
(
event
);
vlc_restorecancel
(
cancel
);
}
}
...
...
@@ -1278,8 +1280,7 @@ void vout_DeleteDisplay(vout_display_t *vd, vout_display_state_t *state)
SplitterClose
(
vd
);
vout_display_Delete
(
vd
);
if
(
osys
->
event
.
fifo
)
{
block_FifoWake
(
osys
->
event
.
fifo
);
vlc_join
(
osys
->
event
.
thread
,
NULL
);
vlc_cancel
(
osys
->
event
.
thread
);
block_FifoRelease
(
osys
->
event
.
fifo
);
}
vlc_mutex_destroy
(
&
osys
->
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