]> git.sesse.net Git - vlc/blobdiff - src/stream_output/sap.c
Use native C/C++ boolean type
[vlc] / src / stream_output / sap.c
index 94a36b4b68a8ed56f694a2cb4af4bc62230b5463..c0caf436e15126ebd59641d0d7b87f258c8a5900 100644 (file)
  * Preamble
  *****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 
 #include <stdlib.h>                                                /* free() */
 #include <stdio.h>                                              /* sprintf() */
-#include <string.h>                                            /* strerror() */
+#include <string.h>
 #include <ctype.h>                                  /* tolower(), isxdigit() */
+#include <assert.h>
 
 #include <vlc_sout.h>
 #include <vlc_network.h>
@@ -180,7 +185,7 @@ void announce_SAPHandlerDestroy( sap_handler_t *p_sap )
     }
 
     /* Free the structure */
-    vlc_object_destroy( p_sap );
+    vlc_object_release( p_sap );
 }
 
 /**