vlc | branch: master | Rafaël Carré <[email protected]> | Wed Dec 18 17:01:21 
2013 +0100| [b1eae5f406edf7f153021d892a15c42c998d1418] | committer: Rafaël Carré

std: Always use module name if access was not specified

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

 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)

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to