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
6c786aa5
Commit
6c786aa5
authored
Dec 11, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout: change vout_Cancel arguments
Add a boolean to reset the cancel state to false
parent
7ae04107
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
src/input/decoder.c
src/input/decoder.c
+1
-1
src/video_output/video_output.c
src/video_output/video_output.c
+5
-5
src/video_output/vout_control.h
src/video_output/vout_control.h
+3
-2
No files found.
src/input/decoder.c
View file @
6c786aa5
...
...
@@ -1866,7 +1866,7 @@ void input_DecoderDelete( decoder_t *p_dec )
* 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
);
vout_Cancel
(
p_owner
->
p_vout
,
true
);
vlc_mutex_unlock
(
&
p_owner
->
lock
);
vlc_join
(
p_owner
->
thread
,
NULL
);
...
...
src/video_output/video_output.c
View file @
6c786aa5
...
...
@@ -303,9 +303,9 @@ static void VoutDestructor(vlc_object_t *object)
}
/* */
void
vout_Cancel
(
vout_thread_t
*
vout
)
void
vout_Cancel
(
vout_thread_t
*
vout
,
bool
canceled
)
{
vout_control_Push
Void
(
&
vout
->
p
->
control
,
VOUT_CONTROL_CANCEL
);
vout_control_Push
Bool
(
&
vout
->
p
->
control
,
VOUT_CONTROL_CANCEL
,
canceled
);
vout_control_WaitEmpty
(
&
vout
->
p
->
control
);
}
...
...
@@ -1455,9 +1455,9 @@ static int ThreadReinit(vout_thread_t *vout,
return
VLC_SUCCESS
;
}
static
void
ThreadCancel
(
vout_thread_t
*
vout
)
static
void
ThreadCancel
(
vout_thread_t
*
vout
,
bool
canceled
)
{
picture_pool_Cancel
(
vout
->
p
->
decoder_pool
,
true
);
picture_pool_Cancel
(
vout
->
p
->
decoder_pool
,
canceled
);
}
static
int
ThreadControl
(
vout_thread_t
*
vout
,
vout_control_cmd_t
cmd
)
...
...
@@ -1480,7 +1480,7 @@ static int ThreadControl(vout_thread_t *vout, vout_control_cmd_t cmd)
return
1
;
break
;
case
VOUT_CONTROL_CANCEL
:
ThreadCancel
(
vout
);
ThreadCancel
(
vout
,
cmd
.
u
.
boolean
);
break
;
case
VOUT_CONTROL_SUBPICTURE
:
ThreadDisplaySubpicture
(
vout
,
cmd
.
u
.
subpicture
);
...
...
src/video_output/vout_control.h
View file @
6c786aa5
...
...
@@ -53,9 +53,10 @@ void vout_Flush( vout_thread_t *p_vout, mtime_t i_date );
void
vout_Reset
(
vout_thread_t
*
p_vout
);
/*
* Cancel the vout, it won't return any pictures after this call.
* Cancel the vout, if cancel is true, it won't return any pictures after this
* call.
*/
void
vout_Cancel
(
vout_thread_t
*
p_vout
);
void
vout_Cancel
(
vout_thread_t
*
p_vout
,
bool
b_canceled
);
/**
* This function will force to display the next picture while paused
...
...
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