#include <stdlib.h> /* free() */
#include <stdio.h> /* sprintf() */
#include <string.h>
-#include <ctype.h> /* tolower(), isxdigit() */
#include <assert.h>
#include <vlc_sout.h>
if (p_sap == NULL)
return NULL;
+ vlc_object_attach( p_sap, p_announce );
vlc_mutex_init (&p_sap->lock);
p_sap->first = NULL;
return p_sap;
if( i )
{
- msg_Err( p_sap, "%s", vlc_gai_strerror( i ) );
+ msg_Err( p_sap, "%s", gai_strerror( i ) );
return VLC_EGENERIC;
}
/* SAPv1, not encrypted, not compressed */
psz_head[0] = 0x20;
- psz_head[1] = 0x00; /* No authentification length */
+ psz_head[1] = 0x00; /* No authentication length */
i_hash = mdate();
psz_head[2] = i_hash >> 8; /* Msg id hash */