]> git.sesse.net Git - vlc/blobdiff - src/stream_output/sap.c
Use native C/C++ boolean type
[vlc] / src / stream_output / sap.c
index e19d3e99d057070db6a0a5843b79d20e9ab7bbc0..c0caf436e15126ebd59641d0d7b87f258c8a5900 100644 (file)
@@ -36,6 +36,7 @@
 #include <stdio.h>                                              /* sprintf() */
 #include <string.h>
 #include <ctype.h>                                  /* tolower(), isxdigit() */
+#include <assert.h>
 
 #include <vlc_sout.h>
 #include <vlc_network.h>
@@ -184,7 +185,7 @@ void announce_SAPHandlerDestroy( sap_handler_t *p_sap )
     }
 
     /* Free the structure */
-    vlc_object_destroy( p_sap );
+    vlc_object_release( p_sap );
 }
 
 /**