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
1a7f1a44
Commit
1a7f1a44
authored
Jun 15, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: kill all the children [add evil laughters here]
No need for vlc_object_find()
parent
d0a2e557
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
20 deletions
+2
-20
src/input/input.c
src/input/input.c
+2
-20
No files found.
src/input/input.c
View file @
1a7f1a44
...
...
@@ -449,28 +449,10 @@ void input_StopThread( input_thread_t *p_input )
/* We cannot touch p_input fields directly (we come from another thread),
* so use the vlc_object_find way, it's perfectly safe */
/* Set die for all access */
p_list
=
vlc_list_
find
(
p_input
,
VLC_OBJECT_ACCESS
,
FIND_CHILD
);
/* Set die for all access
, stream, demux, etc
*/
p_list
=
vlc_list_
children
(
p_input
);
for
(
i
=
0
;
i
<
p_list
->
i_count
;
i
++
)
{
vlc_object_kill
(
p_list
->
p_values
[
i
].
p_object
);
}
vlc_list_release
(
p_list
);
/* Set die for all stream */
p_list
=
vlc_list_find
(
p_input
,
VLC_OBJECT_STREAM
,
FIND_CHILD
);
for
(
i
=
0
;
i
<
p_list
->
i_count
;
i
++
)
{
vlc_object_kill
(
p_list
->
p_values
[
i
].
p_object
);
}
vlc_list_release
(
p_list
);
/* Set die for all demux */
p_list
=
vlc_list_find
(
p_input
,
VLC_OBJECT_DEMUX
,
FIND_CHILD
);
for
(
i
=
0
;
i
<
p_list
->
i_count
;
i
++
)
{
vlc_object_kill
(
p_list
->
p_values
[
i
].
p_object
);
}
vlc_list_release
(
p_list
);
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_DIE
,
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