]> git.sesse.net Git - vlc/blobdiff - modules/services_discovery/sap.c
services_discovery: stores the category & onelevel playlist_item_t* in the services_d...
[vlc] / modules / services_discovery / sap.c
index 23b8c946238a85387737fb9b505ce951f5f1d5a7..9e50499e0a0ab0607da9647640e44ef60a8fb2c3 100644 (file)
@@ -352,7 +352,7 @@ static int OpenDemux( vlc_object_t *p_this )
         psz_sdp = psz_sdp_new;
 
         i_read = stream_Read( p_demux->s, &psz_sdp[i_len], i_read_max );
-        if( i_read < 0 )
+        if( (int)i_read < 0 )
         {
             msg_Err( p_demux, "cannot read SDP" );
             goto error;
@@ -361,7 +361,7 @@ static int OpenDemux( vlc_object_t *p_this )
 
         psz_sdp[i_len] = '\0';
 
-        if( i_read < i_read_max )
+        if( (int)i_read < i_read_max )
             break; // EOF
     }
 
@@ -869,7 +869,7 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
     if (strchr (psz_uri + 1, ':'))
     {
         host = psz_uri;
-        psz_uri[strlen (psz_uri)] = ']';
+        strcat (psz_uri, "]");
     }
     else
         host = psz_uri + 1;
@@ -957,7 +957,7 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
                         psz_source_ip) == 2)
             {
                 /* According to RFC4570, FQDNs can be used for source-filters,
-                * but -seriously- this is impractical */
+                 * but -seriously- this is impractical */
                 switch (ipv)
                 {
 #ifdef AF_INET6