vlc | branch: master | Pierre Ynard <[email protected]> | Sun Dec  4 03:48:00 
2011 +0100| [b2838d22a47429c82bffc148774e4077aadd9086] | committer: Pierre Ynard

lua: remove dead code

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

 modules/lua/intf.c |   17 +----------------
 1 files changed, 1 insertions(+), 16 deletions(-)

diff --git a/modules/lua/intf.c b/modules/lua/intf.c
index e43dbeb..3b01727 100644
--- a/modules/lua/intf.c
+++ b/modules/lua/intf.c
@@ -73,25 +73,10 @@ static char *MakeConfig( intf_thread_t *p_intf, const char 
*name )
         if( psz_http_src )
         {
             char *psz_esc = config_StringEscape( psz_http_src );
-            if( psz_config )
-            {
-                char *psz_tmp;
-                asprintf( &psz_tmp, "%s,dir='%s'", psz_config, psz_esc );
-                free( psz_config );
-                psz_config = psz_tmp;
-            }
-            else
-                asprintf( &psz_config, "http={dir='%s'", psz_esc );
+            asprintf( &psz_config, "http={dir='%s',no_index=%s}", psz_esc, 
b_http_index ? "true" : "false" );
             free( psz_esc );
             free( psz_http_src );
         }
-        if( psz_config )
-        {
-            char *psz_tmp;
-            asprintf( &psz_tmp, "%s,no_index=%s}", psz_config, b_http_index ? 
"true" : "false" );
-            free( psz_config );
-            psz_config = psz_tmp;
-        }
         else
             asprintf( &psz_config, "http={no_index=%s}", b_http_index ? "true" 
: "false" );
     }

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

Reply via email to