]> git.sesse.net Git - vlc/blobdiff - src/stream_output/announce.c
sap: Set the sap announcer object name.
[vlc] / src / stream_output / announce.c
index c1bb2daf65b40d215ee491634f575b56f80028f5..a8b383b8ed74065af163a4b1c1011ddb36342939 100644 (file)
@@ -180,10 +180,8 @@ int announce_HandlerDestroy( announce_handler_t *p_announce )
 {
     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 */