git.videolan.org
/
vlc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sap: Properly manage object memory.
[vlc.git]
/
src
/
stream_output
/
announce.c
diff --git
a/src/stream_output/announce.c
b/src/stream_output/announce.c
index
c1bb2da
..
a8b383b
100644
(file)
--- a/
src/stream_output/announce.c
+++ b/
src/stream_output/announce.c
@@
-180,10
+180,8
@@
int announce_HandlerDestroy( announce_handler_t *p_announce )
{
if( p_announce->p_sap )
{
{
if( p_announce->p_sap )
{
- vlc_object_kill ((vlc_object_t *)p_announce->p_sap);
- /* Wait for the SAP thread to exit */
- vlc_thread_join( (vlc_object_t *)p_announce->p_sap );
- announce_SAPHandlerDestroy( p_announce->p_sap );
+ /* Exit the SAP */
+ vlc_object_release( p_announce->p_sap );
}
/* Free the structure */
}
/* Free the structure */