]> git.sesse.net Git - vlc/blobdiff - src/stream_output/sap.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / src / stream_output / sap.c
index d2fcd92889855a510fa357e3d0e9dda9a7a513d6..04a3b9e35ac77edd89e26ec31785947079491e7d 100644 (file)
@@ -35,7 +35,6 @@
 #include <stdlib.h>                                                /* free() */
 #include <stdio.h>                                              /* sprintf() */
 #include <string.h>
-#include <ctype.h>                                  /* tolower(), isxdigit() */
 #include <assert.h>
 
 #include <vlc_sout.h>
@@ -109,6 +108,7 @@ sap_handler_t *SAP_Create (vlc_object_t *p_announce)
     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;
@@ -308,7 +308,7 @@ int SAP_Add (sap_handler_t *p_sap, session_descriptor_t *p_session)
 
     if( i )
     {
-        msg_Err( p_sap, "%s", vlc_gai_strerror( i ) );
+        msg_Err( p_sap, "%s", gai_strerror( i ) );
         return VLC_EGENERIC;
     }
 
@@ -373,7 +373,7 @@ int SAP_Add (sap_handler_t *p_sap, session_descriptor_t *p_session)
 
     /* 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 */