Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
3220fe68
Commit
3220fe68
authored
Jul 26, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Save a few useless strdup() calls
parent
8f85cbbc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
modules/stream_out/standard.c
modules/stream_out/standard.c
+5
-8
No files found.
modules/stream_out/standard.c
View file @
3220fe68
...
@@ -327,20 +327,17 @@ static int Open( vlc_object_t *p_this )
...
@@ -327,20 +327,17 @@ static int Open( vlc_object_t *p_this )
var_Get
(
p_stream
,
SOUT_CFG_PREFIX
"name"
,
&
val
);
var_Get
(
p_stream
,
SOUT_CFG_PREFIX
"name"
,
&
val
);
if
(
*
val
.
psz_string
)
if
(
*
val
.
psz_string
)
{
p_session
->
psz_name
=
val
.
psz_string
;
p_session
->
psz_name
=
strdup
(
val
.
psz_string
);
}
else
else
{
{
p_session
->
psz_name
=
strdup
(
psz_url
);
p_session
->
psz_name
=
strdup
(
psz_url
);
}
free
(
val
.
psz_string
);
free
(
val
.
psz_string
);
}
var_Get
(
p_stream
,
SOUT_CFG_PREFIX
"group"
,
&
val
);
var_Get
(
p_stream
,
SOUT_CFG_PREFIX
"group"
,
&
val
);
if
(
*
val
.
psz_string
)
if
(
*
val
.
psz_string
)
{
p_session
->
psz_group
=
val
.
psz_string
;
p_session
->
psz_group
=
strdup
(
val
.
psz_string
);
else
}
free
(
val
.
psz_string
);
free
(
val
.
psz_string
);
/* Now, parse the URL to extract host and port */
/* Now, parse the URL to extract host and port */
...
...
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