Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
eb4fd245
Commit
eb4fd245
authored
Mar 04, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preparsing only works with file:// - only try files.
Signed-off-by:
Rémi Denis-Courmont
<
rem@videolan.org
>
parent
e065942c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
src/input/input.c
src/input/input.c
+11
-10
No files found.
src/input/input.c
View file @
eb4fd245
...
...
@@ -2181,13 +2181,12 @@ static int InputSourceInit( input_thread_t *p_input,
if
(
!
p_input
)
return
VLC_EGENERIC
;
/* Split uri */
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
);
if
(
!
p_input
->
b_preparsing
)
{
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
);
/* Hack to allow udp://@:port syntax */
if
(
!
psz_access
||
(
strncmp
(
psz_access
,
"udp"
,
3
)
&&
...
...
@@ -2227,12 +2226,14 @@ static int InputSourceInit( input_thread_t *p_input,
}
else
{
psz_path
=
psz_dup
;
if
(
!
strncmp
(
psz_path
,
"file://"
,
7
)
)
psz_path
+=
7
;
/* Preparsing is only for file:// */
if
(
psz_demux
&&
*
psz_demux
)
goto
error
;
if
(
!
psz_access
||
!*
psz_access
)
/* path without scheme:// */
psz_access
=
"file"
;
if
(
strcmp
(
psz_access
,
"file"
)
)
goto
error
;
msg_Dbg
(
p_input
,
"trying to pre-parse %s"
,
psz_path
);
psz_demux
=
""
;
psz_access
=
"file"
;
}
if
(
in
->
p_demux
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment