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
4b0d2358
Commit
4b0d2358
authored
Nov 30, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder: unblock picture allocation at exit
parent
5ac9185d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/input/decoder.c
src/input/decoder.c
+10
-0
No files found.
src/input/decoder.c
View file @
4b0d2358
...
...
@@ -1761,6 +1761,16 @@ void input_DecoderDelete( decoder_t *p_dec )
vlc_mutex_lock
(
&
p_owner
->
lock
);
p_owner
->
b_waiting
=
false
;
vlc_cond_signal
(
&
p_owner
->
wait_request
);
/* If the video output is paused or slow, or if the picture pool size was
* under-estimated (e.g. greedy video filter, buggy decoder...), the
* the picture pool may be empty, and the decoder thread or any decoder
* module worker threads may be stuck waiting for free picture buffers.
*
* This unblocks the thread, allowing the decoder module to join all its
* worker threads (if any) and the decoder thread to terminate. */
if
(
p_owner
->
p_vout
!=
NULL
)
vout_Cancel
(
p_owner
->
p_vout
);
vlc_mutex_unlock
(
&
p_owner
->
lock
);
vlc_join
(
p_owner
->
thread
,
NULL
);
...
...
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