]> git.sesse.net Git - vlc/blobdiff - src/stream_output/sap.c
sap: Use vlc_custom_create to create the object. (This fixes a misuse of vlc_object_c...
[vlc] / src / stream_output / sap.c
index 239b1cd246447df91b8c7d4d24f176f97dc76738..ae0a23144a6213610bab9430fe63cbd3fe071a38 100644 (file)
@@ -43,6 +43,7 @@
 #include <vlc_charset.h>
 
 #include "stream_output.h"
+#include "libvlc.h"
 
 /* SAP is always on that port */
 #define SAP_PORT 9875
@@ -119,7 +120,8 @@ sap_handler_t *announce_SAPHandlerCreate( announce_handler_t *p_announce )
 {
     sap_handler_t *p_sap;
 
-    p_sap = vlc_object_create( p_announce, sizeof( sap_handler_t ) );
+    p_sap = vlc_custom_create( VLC_OBJECT(p_announce), sizeof( sap_handler_t ),
+                               VLC_OBJECT_ANNOUNCE, "announce" );
     if( !p_sap )
     {
         msg_Err( p_announce, "out of memory" );