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
6555b580
Commit
6555b580
authored
Oct 02, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sout_std: imporve logic (and save a malloc/free)
parent
e7254d38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
22 deletions
+15
-22
modules/stream_out/standard.c
modules/stream_out/standard.c
+15
-22
No files found.
modules/stream_out/standard.c
View file @
6555b580
...
...
@@ -170,7 +170,7 @@ static int Open( vlc_object_t *p_this )
sout_stream_sys_t
*
p_sys
;
char
*
psz_mux
;
char
*
psz_access
=
NULL
;
char
*
psz_access
;
char
*
psz_url
=
NULL
;
char
*
psz_bind
;
char
*
psz_path
;
...
...
@@ -185,28 +185,21 @@ static int Open( vlc_object_t *p_this )
config_ChainParse
(
p_stream
,
SOUT_CFG_PREFIX
,
ppsz_sout_options
,
p_stream
->
p_cfg
);
if
(
!
strcmp
(
p_stream
->
psz_name
,
"http"
)
)
psz_access
=
var_GetString
(
p_stream
,
SOUT_CFG_PREFIX
"access"
);
if
(
EMPTY_STR
(
psz_access
)
)
{
psz_access
=
strdup
(
"http"
);
}
else
if
(
!
strcmp
(
p_stream
->
psz_name
,
"udp"
))
{
psz_access
=
strdup
(
"udp"
);
}
else
if
(
!
strcmp
(
p_stream
->
psz_name
,
"file"
))
{
psz_access
=
strdup
(
"file"
);
}
var_Get
(
p_stream
,
SOUT_CFG_PREFIX
"access"
,
&
val
);
if
(
*
val
.
psz_string
)
{
free
(
psz_access
);
psz_access
=
val
.
psz_string
;
}
else
{
free
(
val
.
psz_string
);
if
(
!
strcmp
(
p_stream
->
psz_name
,
"http"
)
)
{
psz_access
=
strdup
(
"http"
);
}
else
if
(
!
strcmp
(
p_stream
->
psz_name
,
"udp"
))
{
psz_access
=
strdup
(
"udp"
);
}
else
if
(
!
strcmp
(
p_stream
->
psz_name
,
"file"
))
{
psz_access
=
strdup
(
"file"
);
}
}
psz_mux
=
var_GetNonEmptyString
(
p_stream
,
SOUT_CFG_PREFIX
"mux"
);
...
...
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