From: Pierre d'Herbemont Date: Mon, 31 Mar 2008 00:24:56 +0000 (+0200) Subject: sap: Use vlc_custom_create to create the object. (This fixes a misuse of vlc_object_c... X-Git-Tag: 0.9.0-test0~1687 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=45c03700618519cc4c9935559d11d58f4b0e04f1;p=vlc sap: Use vlc_custom_create to create the object. (This fixes a misuse of vlc_object_create too). --- diff --git a/src/stream_output/sap.c b/src/stream_output/sap.c index 239b1cd246..ae0a23144a 100644 --- a/src/stream_output/sap.c +++ b/src/stream_output/sap.c @@ -43,6 +43,7 @@ #include #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" );