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
33cc9972
Commit
33cc9972
authored
Mar 24, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: intf: simplify intf_DestroyAll()
parent
0005aed6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
src/interface/interface.c
src/interface/interface.c
+3
-8
No files found.
src/interface/interface.c
View file @
33cc9972
...
...
@@ -145,28 +145,23 @@ error:
*/
void
intf_DestroyAll
(
libvlc_int_t
*
p_libvlc
)
{
intf_thread_t
*
p_
first
;
intf_thread_t
*
p_
intf
;
vlc_mutex_lock
(
&
lock
);
p_
first
=
libvlc_priv
(
p_libvlc
)
->
p_intf
;
p_
intf
=
libvlc_priv
(
p_libvlc
)
->
p_intf
;
#ifndef NDEBUG
libvlc_priv
(
p_libvlc
)
->
p_intf
=
NULL
;
#endif
vlc_mutex_unlock
(
&
lock
);
/* Tell the interfaces to die */
for
(
intf_thread_t
*
p_intf
=
p_first
;
p_intf
;
p_intf
=
p_intf
->
p_next
)
vlc_object_kill
(
p_intf
);
/* Cleanup the interfaces */
for
(
intf_thread_t
*
p_intf
=
p_first
;
p_intf
!=
NULL
;
)
while
(
p_intf
!=
NULL
)
{
intf_thread_t
*
p_next
=
p_intf
->
p_next
;
module_unneed
(
p_intf
,
p_intf
->
p_module
);
config_ChainDestroy
(
p_intf
->
p_cfg
);
vlc_object_release
(
p_intf
);
p_intf
=
p_next
;
}
}
...
...
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