Commit 45c03700 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

sap: Use vlc_custom_create to create the object. (This fixes a misuse of vlc_object_create too).

parent e002f487
......@@ -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" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment