Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c4960477
Commit
c4960477
authored
Nov 08, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more const and strdup avoidance
parent
1f5a8130
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/input/stream.c
src/input/stream.c
+7
-6
No files found.
src/input/stream.c
View file @
c4960477
...
@@ -193,18 +193,19 @@ static int ASeek( stream_t *s, int64_t i_pos );
...
@@ -193,18 +193,19 @@ static int ASeek( stream_t *s, int64_t i_pos );
****************************************************************************/
****************************************************************************/
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
)
{
{
char
*
psz_access
,
*
psz_demux
,
*
psz_path
,
*
psz_dup
;
const
char
*
psz_access
,
*
psz_demux
;
char
*
psz_path
;
access_t
*
p_access
;
access_t
*
p_access
;
stream_t
*
p_res
;
stream_t
*
p_res
;
if
(
!
psz_url
)
return
0
;
if
(
!
psz_url
)
return
0
;
psz_dup
=
strdup
(
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
(
p_parent
,
psz_dup
,
&
psz_access
,
&
psz_demux
,
&
psz_path
);
/* Now try a real access */
/* Now try a real access */
p_access
=
access2_New
(
p_parent
,
psz_access
,
psz_demux
,
psz_path
,
0
);
p_access
=
access2_New
(
p_parent
,
psz_access
,
psz_demux
,
psz_path
,
0
);
free
(
psz_dup
);
if
(
p_access
==
NULL
)
if
(
p_access
==
NULL
)
{
{
...
...
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