]> git.sesse.net Git - vlc/commitdiff
Fix fallback to live555
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 11 Feb 2007 20:49:08 +0000 (20:49 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 11 Feb 2007 20:49:08 +0000 (20:49 +0000)
modules/services_discovery/sap.c

index d727bca5c853a4ad1c01d9e843b224b7ffa0afe8..ba62ae738332c9544f29f742497299e9e21969bc 100644 (file)
@@ -703,6 +703,8 @@ static int ParseSAP( services_discovery_t *p_sd, const uint8_t *buf,
     if( p_sdp == NULL )
         return VLC_EGENERIC;
 
+    p_sdp->psz_sdp = psz_sdp;
+
     /* Decide whether we should add a playlist item for this SDP */
     /* Parse connection information (c= & m= ) */
     if( ParseConnection( VLC_OBJECT(p_sd), p_sdp ) )
@@ -1328,9 +1330,8 @@ static int Decompress( const unsigned char *psz_src, unsigned char **_dst, int i
 
 static void FreeSDP( sdp_t *p_sdp )
 {
-    FREENULL( p_sdp->psz_sdp );
-    FREENULL( p_sdp->psz_sessionname );
-    FREENULL( p_sdp->psz_uri );
+    free( p_sdp->psz_sessionname );
+    free( p_sdp->psz_uri );
 
     for (unsigned j = 0; j < p_sdp->mediac; j++)
     {