Changeset 7137515698fcfdc6b5db4338b8024abdb0f81b8a
- 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
| ra78e273 |
r7137515 |
|
| 35 | 35 | static access_t *access2_InternalNew( vlc_object_t *p_obj, const char *psz_access, |
|---|
| 36 | 36 | const char *psz_demux, const char *psz_path, |
|---|
| 37 | | access_t *p_source, vlc_bool_t b_quick ) |
|---|
| | 37 | access_t *p_source ) |
|---|
| 38 | 38 | { |
|---|
| 39 | 39 | access_t *p_access = vlc_object_create( p_obj, VLC_OBJECT_ACCESS ); |
|---|
| … | … | |
| 56 | 56 | else |
|---|
| 57 | 57 | { |
|---|
| | 58 | msg_Dbg( p_obj, "creating access '%s' path='%s'", |
|---|
| | 59 | psz_access, psz_path ); |
|---|
| 58 | 60 | 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 ); |
|---|
| 69 | 62 | 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 ); |
|---|
| 74 | 63 | } |
|---|
| 75 | 64 | |
|---|
| … | … | |
| 120 | 109 | *****************************************************************************/ |
|---|
| 121 | 110 | access_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 ) |
|---|
| 123 | 112 | { |
|---|
| 124 | 113 | return access2_InternalNew( p_obj, psz_access, psz_demux, |
|---|
| 125 | | psz_path, NULL, b_quick ); |
|---|
| | 114 | psz_path, NULL ); |
|---|
| 126 | 115 | } |
|---|
| 127 | 116 | |
|---|
| … | … | |
| 132 | 121 | { |
|---|
| 133 | 122 | return access2_InternalNew( VLC_OBJECT(p_source), psz_access_filter, |
|---|
| 134 | | NULL, NULL, p_source, VLC_FALSE ); |
|---|
| | 123 | NULL, NULL, p_source ); |
|---|
| 135 | 124 | } |
|---|
| 136 | 125 | |
|---|
| r4dded81 |
r7137515 |
|
| 2290 | 2290 | |
|---|
| 2291 | 2291 | /* 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 ); |
|---|
| 2294 | 2293 | |
|---|
| 2295 | 2294 | /* Access failed, URL encoded ? */ |
|---|
| … | … | |
| 2302 | 2301 | |
|---|
| 2303 | 2302 | 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 ); |
|---|
| 2306 | 2304 | } |
|---|
| 2307 | 2305 | if( in->p_access == NULL ) |
|---|
| rce654e9 |
r7137515 |
|
| 423 | 423 | /* Access */ |
|---|
| 424 | 424 | |
|---|
| 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 ) |
|---|
| 426 | 426 | access_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 ); |
|---|
| 429 | 428 | access_t * access2_FilterNew( access_t *p_source, |
|---|
| 430 | 429 | const char *psz_access_filter ); |
|---|
| rc482de1 |
r7137515 |
|
| 207 | 207 | |
|---|
| 208 | 208 | /* 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 ); |
|---|
| 210 | 210 | |
|---|
| 211 | 211 | if( p_access == NULL ) |
|---|
| … | … | |
| 306 | 306 | { |
|---|
| 307 | 307 | access_t *p_tmp = access2_New( p_access, p_access->psz_access, |
|---|
| 308 | | "", psz_name, 0 ); |
|---|
| | 308 | "", psz_name ); |
|---|
| 309 | 309 | |
|---|
| 310 | 310 | if( !p_tmp ) |
|---|
| … | … | |
| 1712 | 1712 | msg_Dbg( s, "opening input `%s'", psz_name ); |
|---|
| 1713 | 1713 | |
|---|
| 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 ); |
|---|
| 1715 | 1715 | |
|---|
| 1716 | 1716 | if( !p_list_access ) return 0; |
|---|
| … | … | |
| 1784 | 1784 | msg_Dbg( s, "opening input `%s'", psz_name ); |
|---|
| 1785 | 1785 | |
|---|
| 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 ); |
|---|
| 1787 | 1787 | |
|---|
| 1788 | 1788 | if( !p_list_access ) return 0; |
|---|
| … | … | |
| 1841 | 1841 | { |
|---|
| 1842 | 1842 | p_list_access = |
|---|
| 1843 | | access2_New( s, p_access->psz_access, "", psz_name, 0 ); |
|---|
| | 1843 | access2_New( s, p_access->psz_access, "", psz_name ); |
|---|
| 1844 | 1844 | } |
|---|
| 1845 | 1845 | else if( i != p_sys->i_list_index ) |
|---|