]> git.sesse.net Git - vlc/commitdiff
simplifications.
authorRémi Duraffort <ivoire@videolan.org>
Fri, 20 Feb 2009 14:02:26 +0000 (15:02 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 20 Feb 2009 14:57:49 +0000 (15:57 +0100)
modules/demux/playlist/sgimb.c

index c83e604297ec16e32df23f5e8da27df31da24a5b..f2d83a3baa6f43bb039fc7aae1e8cb0e07a0ed2f 100644 (file)
@@ -398,23 +398,9 @@ static int Demux ( demux_t *p_demux )
         }
     }
     if( !p_sys->psz_mcast_ip )
-    {
-        char *psz_option;
-        if( asprintf( &psz_option, "rtsp-caching=5000" ) != -1 )
-        {
-            input_item_AddOption( p_child, psz_option, VLC_INPUT_OPTION_TRUSTED );
-            free( psz_option );
-        }
-    }
+        input_item_AddOption( p_child, "rtsp-caching=5000", VLC_INPUT_OPTION_TRUSTED );
     if( !p_sys->psz_mcast_ip && p_sys->b_rtsp_kasenna )
-    {
-        char *psz_option;
-        if( asprintf( &psz_option, "rtsp-kasenna" ) != -1 )
-        {
-            input_item_AddOption( p_child, psz_option, VLC_INPUT_OPTION_TRUSTED );
-            free( psz_option );
-        }
-    }
+        input_item_AddOption( p_child, "rtsp-kasenna", VLC_INPUT_OPTION_TRUSTED );
 
     input_item_AddSubItem( p_current_input, p_child );
     vlc_gc_decref( p_child );