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
04058ca6
Commit
04058ca6
authored
May 25, 2011
by
Sébastien Escudier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlm : call var_DelCallback after input thread is joined.
This reverts vlm callback behaviour before
67b16b1b
parent
8b2cb8f2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
include/vlc_input.h
include/vlc_input.h
+2
-0
src/input/input.c
src/input/input.c
+13
-3
src/input/vlm.c
src/input/vlm.c
+4
-2
No files found.
include/vlc_input.h
View file @
04058ca6
...
...
@@ -544,6 +544,8 @@ VLC_API int input_vaControl( input_thread_t *, int i_query, va_list );
VLC_API
int
input_Control
(
input_thread_t
*
,
int
i_query
,
...
);
VLC_API
void
input_Close
(
input_thread_t
*
);
void
input_Join
(
input_thread_t
*
);
void
input_Release
(
input_thread_t
*
);
/**
* Get the input item for an input thread
...
...
src/input/input.c
View file @
04058ca6
...
...
@@ -252,6 +252,17 @@ void input_Stop( input_thread_t *p_input, bool b_abort )
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_DIE
,
NULL
);
}
void
input_Join
(
input_thread_t
*
p_input
)
{
if
(
p_input
->
p
->
is_running
)
vlc_join
(
p_input
->
p
->
thread
,
NULL
);
}
void
input_Release
(
input_thread_t
*
p_input
)
{
vlc_object_release
(
p_input
);
}
/**
* Close an input
*
...
...
@@ -259,9 +270,8 @@ void input_Stop( input_thread_t *p_input, bool b_abort )
*/
void
input_Close
(
input_thread_t
*
p_input
)
{
if
(
p_input
->
p
->
is_running
)
vlc_join
(
p_input
->
p
->
thread
,
NULL
);
vlc_object_release
(
p_input
);
input_Join
(
p_input
);
input_Release
(
p_input
);
}
/**
...
...
src/input/vlm.c
View file @
04058ca6
...
...
@@ -912,8 +912,9 @@ static void vlm_MediaInstanceDelete( vlm_t *p_vlm, int64_t id, vlm_media_instanc
if
(
p_input
)
{
input_Stop
(
p_input
,
true
);
input_Join
(
p_input
);
var_DelCallback
(
p_instance
->
p_input
,
"intf-event"
,
InputEvent
,
p_media
);
input_
Clo
se
(
p_input
);
input_
Relea
se
(
p_input
);
vlm_SendEventMediaInstanceStopped
(
p_vlm
,
id
,
p_media
->
cfg
.
psz_name
);
}
...
...
@@ -1006,8 +1007,9 @@ static int vlm_ControlMediaInstanceStart( vlm_t *p_vlm, int64_t id, const char *
input_Stop
(
p_input
,
true
);
input_Join
(
p_input
);
var_DelCallback
(
p_instance
->
p_input
,
"intf-event"
,
InputEvent
,
p_media
);
input_
Clo
se
(
p_input
);
input_
Relea
se
(
p_input
);
if
(
!
p_instance
->
b_sout_keep
)
input_resource_TerminateSout
(
p_instance
->
p_input_resource
);
...
...
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