Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
5b2e775b
Commit
5b2e775b
authored
Jul 22, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream: use vlc_access_NewMRL()
parent
3660164b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
src/input/stream.c
src/input/stream.c
+1
-9
No files found.
src/input/stream.c
View file @
5b2e775b
...
@@ -258,18 +258,10 @@ void stream_CommonDelete( stream_t *s )
...
@@ -258,18 +258,10 @@ void stream_CommonDelete( stream_t *s )
****************************************************************************/
****************************************************************************/
stream_t
*
stream_UrlNew
(
vlc_object_t
*
p_parent
,
const
char
*
psz_url
)
stream_t
*
stream_UrlNew
(
vlc_object_t
*
p_parent
,
const
char
*
psz_url
)
{
{
const
char
*
psz_access
,
*
psz_demux
,
*
psz_path
,
*
psz_anchor
;
access_t
*
p_access
;
if
(
!
psz_url
)
if
(
!
psz_url
)
return
NULL
;
return
NULL
;
char
psz_dup
[
strlen
(
psz_url
)
+
1
];
access_t
*
p_access
=
vlc_access_NewMRL
(
p_parent
,
psz_url
);
strcpy
(
psz_dup
,
psz_url
);
input_SplitMRL
(
&
psz_access
,
&
psz_demux
,
&
psz_path
,
&
psz_anchor
,
psz_dup
);
/* Now try a real access */
p_access
=
access_New
(
p_parent
,
NULL
,
psz_access
,
psz_demux
,
psz_path
);
if
(
p_access
==
NULL
)
if
(
p_access
==
NULL
)
{
{
msg_Err
(
p_parent
,
"no suitable access module for `%s'"
,
psz_url
);
msg_Err
(
p_parent
,
"no suitable access module for `%s'"
,
psz_url
);
...
...
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