Changeset 7137515698fcfdc6b5db4338b8024abdb0f81b8a

Show
Ignore:
Timestamp:
04/03/08 21:16:47 (9 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1204661807 +0200
git-parent:

[4dded813f179fa246a08c3eb8da070760c0a8ed5]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1204661807 +0200
Message:

access2_New really does not need to know about preparsing.

The input already does the job.

Signed-off-by: Rémi Denis-Courmont <rem@videolan.org>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/input/access.c

    ra78e273 r7137515  
    3535static access_t *access2_InternalNew( vlc_object_t *p_obj, const char *psz_access, 
    3636                                      const char *psz_demux, const char *psz_path, 
    37                                       access_t *p_source, vlc_bool_t b_quick
     37                                      access_t *p_source
    3838{ 
    3939    access_t *p_access = vlc_object_create( p_obj, VLC_OBJECT_ACCESS ); 
     
    5656    else 
    5757    { 
     58        msg_Dbg( p_obj, "creating access '%s' path='%s'", 
     59                 psz_access, psz_path ); 
    5860        p_access->psz_path   = strdup( psz_path ); 
    59         if( b_quick ) 
    60         { 
    61             if( strncmp( psz_path, "file://", 7 ) == 0 ) 
    62                 p_access->psz_access = strdup( "" ); 
    63             else 
    64                 p_access->psz_access = strdup( "file" ); 
    65         } 
    66         else 
    67             p_access->psz_access = strdup( psz_access ); 
    68  
     61        p_access->psz_access = strdup( psz_access ); 
    6962        p_access->psz_demux  = strdup( psz_demux ); 
    70  
    71         if( !b_quick ) 
    72             msg_Dbg( p_obj, "creating access '%s' path='%s'", 
    73                      psz_access, psz_path ); 
    7463    } 
    7564 
     
    120109 *****************************************************************************/ 
    121110access_t *__access2_New( vlc_object_t *p_obj, const char *psz_access, 
    122                          const char *psz_demux, const char *psz_path, vlc_bool_t b_quick
     111                         const char *psz_demux, const char *psz_path
    123112{ 
    124113    return access2_InternalNew( p_obj, psz_access, psz_demux, 
    125                                 psz_path, NULL, b_quick ); 
     114                                psz_path, NULL ); 
    126115} 
    127116 
     
    132121{ 
    133122    return access2_InternalNew( VLC_OBJECT(p_source), psz_access_filter, 
    134                                 NULL, NULL, p_source, VLC_FALSE ); 
     123                                NULL, NULL, p_source ); 
    135124} 
    136125 
  • src/input/input.c

    r4dded81 r7137515  
    22902290 
    22912291        /* Now try a real access */ 
    2292         in->p_access = access2_New( p_input, psz_access, psz_demux, psz_path, 
    2293                                     p_input->b_preparsing ); 
     2292        in->p_access = access2_New( p_input, psz_access, psz_demux, psz_path ); 
    22942293 
    22952294        /* Access failed, URL encoded ? */ 
     
    23022301 
    23032302            in->p_access = access2_New( p_input, 
    2304                                         psz_access, psz_demux, psz_path, 
    2305                                         p_input->b_preparsing ); 
     2303                                        psz_access, psz_demux, psz_path ); 
    23062304        } 
    23072305        if( in->p_access == NULL ) 
  • src/input/input_internal.h

    rce654e9 r7137515  
    423423/* Access */ 
    424424 
    425 #define access2_New( a, b, c, d, e ) __access2_New(VLC_OBJECT(a), b, c, d, e
     425#define access2_New( a, b, c, d ) __access2_New(VLC_OBJECT(a), b, c, d
    426426access_t * __access2_New( vlc_object_t *p_obj, const char *psz_access, 
    427                           const char *psz_demux, const char *psz_path, 
    428                           vlc_bool_t b_quick ); 
     427                          const char *psz_demux, const char *psz_path ); 
    429428access_t * access2_FilterNew( access_t *p_source, 
    430429                              const char *psz_access_filter ); 
  • src/input/stream.c

    rc482de1 r7137515  
    207207 
    208208    /* Now try a real access */ 
    209     p_access = access2_New( p_parent, psz_access, psz_demux, psz_path, 0 ); 
     209    p_access = access2_New( p_parent, psz_access, psz_demux, psz_path ); 
    210210 
    211211    if( p_access == NULL ) 
     
    306306            { 
    307307                access_t *p_tmp = access2_New( p_access, p_access->psz_access, 
    308                                                "", psz_name, 0 ); 
     308                                               "", psz_name ); 
    309309 
    310310                if( !p_tmp ) 
     
    17121712        msg_Dbg( s, "opening input `%s'", psz_name ); 
    17131713 
    1714         p_list_access = access2_New( s, p_access->psz_access, "", psz_name, 0 ); 
     1714        p_list_access = access2_New( s, p_access->psz_access, "", psz_name ); 
    17151715 
    17161716        if( !p_list_access ) return 0; 
     
    17841784        msg_Dbg( s, "opening input `%s'", psz_name ); 
    17851785 
    1786         p_list_access = access2_New( s, p_access->psz_access, "", psz_name, 0 ); 
     1786        p_list_access = access2_New( s, p_access->psz_access, "", psz_name ); 
    17871787 
    17881788        if( !p_list_access ) return 0; 
     
    18411841        { 
    18421842            p_list_access = 
    1843                 access2_New( s, p_access->psz_access, "", psz_name, 0 ); 
     1843                access2_New( s, p_access->psz_access, "", psz_name ); 
    18441844        } 
    18451845        else if( i != p_sys->i_list_index )