[vlc-devel] commit: simplifications. ( Rémi Duraffort )

git version control git at videolan.org
Fri Feb 20 16:25:12 CET 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Feb 20 15:02:26 2009 +0100| [db8bc2b4bee3ff874080aa2a6293edf1a7af465e] | committer: Rémi Duraffort 

simplifications.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=db8bc2b4bee3ff874080aa2a6293edf1a7af465e
---

 modules/demux/playlist/sgimb.c |   18 ++----------------
 1 files changed, 2 insertions(+), 16 deletions(-)

diff --git a/modules/demux/playlist/sgimb.c b/modules/demux/playlist/sgimb.c
index c83e604..f2d83a3 100644
--- a/modules/demux/playlist/sgimb.c
+++ b/modules/demux/playlist/sgimb.c
@@ -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 );




More information about the vlc-devel mailing list