[vlc-devel] commit: sap: Use vlc_custom_create to create the object. ( This fixes a misuse of vlc_object_create too). (Pierre d'Herbemont )
git version control
git at videolan.org
Mon Mar 31 02:31:11 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Mon Mar 31 02:24:56 2008 +0200| [45c03700618519cc4c9935559d11d58f4b0e04f1]
sap: Use vlc_custom_create to create the object. (This fixes a misuse of vlc_object_create too).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=45c03700618519cc4c9935559d11d58f4b0e04f1
---
src/stream_output/sap.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/stream_output/sap.c b/src/stream_output/sap.c
index 239b1cd..ae0a231 100644
--- a/src/stream_output/sap.c
+++ b/src/stream_output/sap.c
@@ -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" );
More information about the vlc-devel
mailing list