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
33e3934e
Commit
33e3934e
authored
Sep 01, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- do not check "always true" case
- fix a small memory leak
parent
ba9476d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
25 deletions
+24
-25
modules/stream_out/standard.c
modules/stream_out/standard.c
+24
-25
No files found.
modules/stream_out/standard.c
View file @
33e3934e
...
...
@@ -271,38 +271,37 @@ static int Open( vlc_object_t *p_this )
}
/* fix or warn of incompatible couple */
if
(
psz_mux
&&
psz_access
)
if
(
!
strncmp
(
psz_access
,
"mmsh"
,
4
)
&&
strncmp
(
psz_mux
,
"asfh"
,
4
)
)
{
if
(
!
strncmp
(
psz_access
,
"mmsh"
,
4
)
&&
strncmp
(
psz_mux
,
"asfh"
,
4
)
)
{
char
*
p
=
strchr
(
psz_mux
,
'{'
);
char
*
p
=
strchr
(
psz_mux
,
'{'
);
msg_Warn
(
p_stream
,
"fixing to mmsh/asfh"
);
if
(
p
)
{
/* -> a little memleak but ... */
psz_mux
=
malloc
(
strlen
(
"asfh"
)
+
strlen
(
p
)
+
1
);
sprintf
(
psz_mux
,
"asfh%s"
,
p
);
}
else
{
psz_mux
=
strdup
(
"asfh"
);
}
}
else
if
(
(
!
strncmp
(
psz_access
,
"rtp"
,
3
)
||
!
strncmp
(
psz_access
,
"udp"
,
3
)
)
&&
strncmp
(
psz_mux
,
"ts"
,
2
)
)
msg_Warn
(
p_stream
,
"fixing to mmsh/asfh"
);
if
(
p
)
{
msg_Err
(
p_stream
,
"for now udp and rtp are only valid with TS"
);
if
(
asprintf
(
&
p
,
"asfh%s"
,
p
)
==
-
1
)
p
=
NULL
;
free
(
psz_mux
);
psz_mux
=
p
;
}
else
if
(
strncmp
(
psz_access
,
"file"
,
4
)
&&
(
!
strncmp
(
psz_mux
,
"mov"
,
3
)
||
!
strncmp
(
psz_mux
,
"mp4"
,
3
)
)
)
else
{
msg_Err
(
p_stream
,
"mov and mp4 work only with file output"
);
free
(
psz_mux
);
psz_mux
=
strdup
(
"asfh"
);
}
}
else
if
(
(
!
strncmp
(
psz_access
,
"rtp"
,
3
)
||
!
strncmp
(
psz_access
,
"udp"
,
3
)
)
&&
strncmp
(
psz_mux
,
"ts"
,
2
)
)
{
msg_Err
(
p_stream
,
"UDP and RTP are only valid with TS"
);
}
else
if
(
strncmp
(
psz_access
,
"file"
,
4
)
&&
(
!
strncmp
(
psz_mux
,
"mov"
,
3
)
||
!
strncmp
(
psz_mux
,
"mp4"
,
3
)
)
)
{
msg_Err
(
p_stream
,
"mov and mp4 work only with file output"
);
}
msg_Dbg
(
p_this
,
"using `%s/%s://%s'"
,
psz_access
,
psz_mux
,
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