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
7c7e278d
Commit
7c7e278d
authored
Sep 29, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check malloc return value)
parent
5f05de85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/stream_out/gather.c
modules/stream_out/gather.c
+5
-1
No files found.
modules/stream_out/gather.c
View file @
7c7e278d
...
...
@@ -74,6 +74,9 @@ static int Open( vlc_object_t *p_this )
sout_stream_sys_t
*
p_sys
;
p_stream
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
sout_stream_sys_t
)
);
if
(
p_sys
==
NULL
)
return
VLC_EGENERIC
;
p_sys
->
p_out
=
sout_StreamNew
(
p_stream
->
p_sout
,
p_stream
->
psz_next
);
if
(
p_sys
->
p_out
==
NULL
)
{
...
...
@@ -171,6 +174,8 @@ static sout_stream_id_t * Add( sout_stream_t *p_stream, es_format_t *p_fmt )
msg_Dbg
(
p_stream
,
"creating new output"
);
id
=
malloc
(
sizeof
(
sout_stream_id_t
)
);
if
(
id
==
NULL
)
return
NULL
;
es_format_Copy
(
&
id
->
fmt
,
p_fmt
);
id
->
b_used
=
VLC_TRUE
;
id
->
id
=
sout_StreamIdAdd
(
p_sys
->
p_out
,
&
id
->
fmt
);
...
...
@@ -203,4 +208,3 @@ static int Send( sout_stream_t *p_stream,
return
sout_StreamIdSend
(
p_sys
->
p_out
,
id
->
id
,
p_buffer
);
}
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