[vlc-devel] [PATCH] std: Always use module name if access was not specified

Rafaël Carré funman at videolan.org
Wed Dec 18 17:01:46 CET 2013


---
 modules/stream_out/standard.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/modules/stream_out/standard.c b/modules/stream_out/standard.c
index ada6584..e5c1e5e 100644
--- a/modules/stream_out/standard.c
+++ b/modules/stream_out/standard.c
@@ -333,14 +333,7 @@ static int Open( vlc_object_t *p_this )
 
     psz_access = var_GetNonEmptyString( p_stream, SOUT_CFG_PREFIX "access" );
     if( !psz_access )
-    {
-        if( !strcmp( p_stream->psz_name, "http" ) )
-            psz_access = strdup("http");
-        else if (!strcmp (p_stream->psz_name, "udp"))
-            psz_access = strdup("udp");
-        else if (!strcmp (p_stream->psz_name, "file"))
-            psz_access = strdup("file");
-    }
+        psz_access = strdup(p_stream->psz_name);
 
     psz_url = var_GetNonEmptyString( p_stream, SOUT_CFG_PREFIX "dst" );
     if (!psz_url)
-- 
1.8.5.2




More information about the vlc-devel mailing list