]> git.sesse.net Git - vlc/commitdiff
MRLSplit(): removes unused parameter
authorRafaël Carré <funman@videolan.org>
Tue, 29 Jan 2008 13:19:29 +0000 (13:19 +0000)
committerRafaël Carré <funman@videolan.org>
Tue, 29 Jan 2008 13:19:29 +0000 (13:19 +0000)
src/input/input.c
src/input/input_internal.h
src/input/stream.c

index dcb7b66dae1d33fa4fed096f13a23f18cec1c3db..10dcc7693c3d88951135798218e651d2c32fc321 100644 (file)
@@ -2181,8 +2181,7 @@ static int InputSourceInit( input_thread_t *p_input,
     /* Split uri */
     if( !p_input->b_preparsing )
     {
-        MRLSplit( VLC_OBJECT(p_input), psz_dup,
-                  &psz_access, &psz_demux, &psz_path );
+        MRLSplit( psz_dup, &psz_access, &psz_demux, &psz_path );
 
         msg_Dbg( p_input, "`%s' gives access `%s' demux `%s' path `%s'",
                  psz_mrl, psz_access, psz_demux, psz_path );
@@ -2398,8 +2397,7 @@ static int InputSourceInit( input_thread_t *p_input,
             {
                 const char *psz_a, *psz_d;
                 psz_buf = strdup( in->p_access->psz_path );
-                MRLSplit( VLC_OBJECT(p_input), psz_buf,
-                          &psz_a, &psz_d, &psz_real_path );
+                MRLSplit( psz_buf, &psz_a, &psz_d, &psz_real_path );
             }
             else
             {
@@ -2790,8 +2788,7 @@ static void DemuxMeta( input_thread_t *p_input, vlc_meta_t *p_meta, demux_t *p_d
  * MRLSplit: parse the access, demux and url part of the
  *           Media Resource Locator.
  *****************************************************************************/
-void MRLSplit( vlc_object_t *p_input, char *psz_dup,
-               const char **ppsz_access, const char **ppsz_demux,
+void MRLSplit( char *psz_dup, const char **ppsz_access, const char **ppsz_demux,
                char **ppsz_path )
 {
     const char *psz_access = "";
index 080083ed52148f3e1fb2fc9293fecab93d7f9f43..f198bdc5d559e0f5d033d9880846cabeb9949a2b 100644 (file)
@@ -413,7 +413,7 @@ void    input_ClockSetRate( input_thread_t *, input_clock_t *cl, int i_rate );
 char **subtitles_Detect( input_thread_t *, char* path, const char *fname );
 int subtitles_Filter( const char *);
 
-void MRLSplit( vlc_object_t *, char *, const char **, const char **, char ** );
+void MRLSplit( char *, const char **, const char **, char ** );
 
 static inline void input_ChangeState( input_thread_t *p_input, int state )
 {
index a85ecd4c1799a5e3f359cfdd6106e5b9f6e07cfd..99549543799221fa5e0493df330d6a432b6599a7 100644 (file)
@@ -203,7 +203,7 @@ stream_t *__stream_UrlNew( vlc_object_t *p_parent, const char *psz_url )
 
     char psz_dup[strlen (psz_url) + 1];
     strcpy (psz_dup, psz_url);;
-    MRLSplit( p_parent, psz_dup, &psz_access, &psz_demux, &psz_path );
+    MRLSplit( psz_dup, &psz_access, &psz_demux, &psz_path );
 
     /* Now try a real access */
     p_access = access2_New( p_parent, psz_access, psz_demux, psz_path, 0 );