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
07fb0fb9
Commit
07fb0fb9
authored
Jan 17, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup functions cannot fail
parent
36547e29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
src/control/libvlc_internal.h
src/control/libvlc_internal.h
+2
-2
src/libvlc.c
src/libvlc.c
+2
-10
No files found.
src/control/libvlc_internal.h
View file @
07fb0fb9
...
...
@@ -41,8 +41,8 @@
***************************************************************************/
VLC_EXPORT
(
libvlc_int_t
*
,
libvlc_InternalCreate
,
(
void
)
);
VLC_EXPORT
(
int
,
libvlc_InternalInit
,
(
libvlc_int_t
*
,
int
,
const
char
*
ppsz_argv
[]
)
);
VLC_EXPORT
(
int
,
libvlc_InternalCleanup
,
(
libvlc_int_t
*
)
);
VLC_EXPORT
(
int
,
libvlc_InternalDestroy
,
(
libvlc_int_t
*
)
);
VLC_EXPORT
(
void
,
libvlc_InternalCleanup
,
(
libvlc_int_t
*
)
);
VLC_EXPORT
(
void
,
libvlc_InternalDestroy
,
(
libvlc_int_t
*
)
);
VLC_EXPORT
(
int
,
libvlc_InternalAddIntf
,
(
libvlc_int_t
*
,
const
char
*
)
);
...
...
src/libvlc.c
View file @
07fb0fb9
...
...
@@ -1020,7 +1020,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
* Cleanup a libvlc instance. The instance is not completely deallocated
* \param p_libvlc the instance to clean
*/
int
libvlc_InternalCleanup
(
libvlc_int_t
*
p_libvlc
)
void
libvlc_InternalCleanup
(
libvlc_int_t
*
p_libvlc
)
{
libvlc_priv_t
*
priv
=
libvlc_priv
(
p_libvlc
);
playlist_t
*
p_playlist
=
priv
->
p_playlist
;
...
...
@@ -1071,8 +1071,6 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
msg_Dbg
(
p_libvlc
,
"removing stats"
);
vlc_mutex_destroy
(
&
p_libvlc
->
p_stats
->
lock
);
FREENULL
(
p_libvlc
->
p_stats
);
return
VLC_SUCCESS
;
}
/**
...
...
@@ -1082,11 +1080,8 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
* It stops the thread systems: no instance can run after this has run
* \param p_libvlc the instance to destroy
*/
int
libvlc_InternalDestroy
(
libvlc_int_t
*
p_libvlc
)
void
libvlc_InternalDestroy
(
libvlc_int_t
*
p_libvlc
)
{
if
(
!
p_libvlc
)
return
VLC_EGENERIC
;
libvlc_priv_t
*
priv
=
libvlc_priv
(
p_libvlc
);
#ifndef WIN32
...
...
@@ -1139,9 +1134,6 @@ int libvlc_InternalDestroy( libvlc_int_t *p_libvlc )
vlc_mutex_destroy
(
&
priv
->
timer_lock
);
vlc_object_release
(
p_libvlc
);
p_libvlc
=
NULL
;
return
VLC_SUCCESS
;
}
/**
...
...
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