]> git.sesse.net Git - vlc/commitdiff
Remove the ugly insecure hack.
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 3 Jan 2007 22:36:15 +0000 (22:36 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 3 Jan 2007 22:36:15 +0000 (22:36 +0000)
Maybe you have a colon in your filename,
but it is no reason to mix access protocols.

src/input/input.c

index 7b63bd4cc9d63ae8279e4bbb410cb99bd966e1f7..e5c1c6e98523077f6187646671e169f7b6bb70bb 100644 (file)
@@ -2049,27 +2049,6 @@ static int InputSourceInit( input_thread_t *p_input,
                                         psz_access, psz_demux, psz_path,
                                         p_input->b_preparsing );
         }
-#ifndef WIN32      /* Remove this gross hack from the win32 build as colons
-                        * are forbidden in filenames on Win32. */
-
-        /* Maybe we got something like: /Volumes/toto:titi/gabu.mpg */
-        if( in->p_access == NULL &&
-            *psz_access == '\0' && ( *psz_demux || *psz_path ) )
-        {
-            strcpy (psz_dup, psz_mrl);
-            psz_access = "";
-            if( psz_forced_demux && *psz_forced_demux )
-            {
-                psz_demux = psz_forced_demux;
-            }
-            else psz_demux = "";
-            psz_path = psz_dup;
-
-            in->p_access = access2_New( p_input,
-                                        psz_access, psz_demux, psz_path,
-                                        p_input->b_preparsing );
-        }
-#endif
 
         if( in->p_access == NULL )
         {