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
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
Hide 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 );
****************************************************************************/
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
;
stream_t
*
p_res
;
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
);
/* Now try a real access */
p_access
=
access2_New
(
p_parent
,
psz_access
,
psz_demux
,
psz_path
,
0
);
free
(
psz_dup
);
if
(
p_access
==
NULL
)
{
...
...
@@ -1532,14 +1533,14 @@ char * stream_ReadLine( stream_t *s )
const
char
*
p_in
=
NULL
;
char
*
p_out
=
NULL
;
char
*
psz_new_line
=
NULL
;
/* iconv */
psz_new_line
=
malloc
(
i_line
);
i_in
=
i_out
=
(
size_t
)
i_line
;
p_in
=
p_line
;
p_out
=
psz_new_line
;
if
(
vlc_iconv
(
s
->
conv
,
&
p_in
,
&
i_in
,
&
p_out
,
&
i_out
)
==
(
size_t
)
-
1
)
{
msg_Err
(
s
,
"iconv failed"
);
...
...
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