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
c7734fcc
Commit
c7734fcc
authored
May 20, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: remove input_Join() and input_Release()
parent
ce069b3e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
21 deletions
+5
-21
include/vlc_input.h
include/vlc_input.h
+0
-2
src/input/input.c
src/input/input.c
+3
-13
src/input/vlm.c
src/input/vlm.c
+2
-6
No files found.
include/vlc_input.h
View file @
c7734fcc
...
...
@@ -508,8 +508,6 @@ 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 @
c7734fcc
...
...
@@ -248,17 +248,6 @@ void input_Stop( input_thread_t *p_input )
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
*
...
...
@@ -266,8 +255,9 @@ void input_Release( input_thread_t *p_input )
*/
void
input_Close
(
input_thread_t
*
p_input
)
{
input_Join
(
p_input
);
input_Release
(
p_input
);
if
(
p_input
->
p
->
is_running
)
vlc_join
(
p_input
->
p
->
thread
,
NULL
);
vlc_object_release
(
p_input
);
}
/**
...
...
src/input/vlm.c
View file @
c7734fcc
...
...
@@ -905,9 +905,7 @@ static void vlm_MediaInstanceDelete( vlm_t *p_vlm, int64_t id, vlm_media_instanc
if
(
p_input
)
{
input_Stop
(
p_input
);
input_Join
(
p_input
);
var_DelCallback
(
p_instance
->
p_input
,
"intf-event"
,
InputEvent
,
p_media
);
input_Release
(
p_input
);
input_Close
(
p_input
);
vlm_SendEventMediaInstanceStopped
(
p_vlm
,
id
,
p_media
->
cfg
.
psz_name
);
}
...
...
@@ -997,9 +995,7 @@ static int vlm_ControlMediaInstanceStart( vlm_t *p_vlm, int64_t id, const char *
input_Stop
(
p_input
);
input_Join
(
p_input
);
var_DelCallback
(
p_instance
->
p_input
,
"intf-event"
,
InputEvent
,
p_media
);
input_Release
(
p_input
);
input_Close
(
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