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
4eb79afc
Commit
4eb79afc
authored
Feb 11, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check malloc return value
parent
2c5cd248
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
modules/stream_out/standard.c
modules/stream_out/standard.c
+1
-2
src/stream_output/stream_output.c
src/stream_output/stream_output.c
+5
-0
No files found.
modules/stream_out/standard.c
View file @
4eb79afc
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#include <vlc/vlc.h>
#include <vlc/vlc.h>
#include <vlc_sout.h>
#include <vlc_sout.h>
#include <vlc_network.h>
#include <vlc_network.h>
#include "vlc_url.h"
#include "vlc_url.h"
...
@@ -172,12 +171,12 @@ static int Open( vlc_object_t *p_this )
...
@@ -172,12 +171,12 @@ static int Open( vlc_object_t *p_this )
psz_mux
=
*
val
.
psz_string
?
val
.
psz_string
:
NULL
;
psz_mux
=
*
val
.
psz_string
?
val
.
psz_string
:
NULL
;
if
(
!*
val
.
psz_string
)
free
(
val
.
psz_string
);
if
(
!*
val
.
psz_string
)
free
(
val
.
psz_string
);
var_Get
(
p_stream
,
SOUT_CFG_PREFIX
"dst"
,
&
val
);
var_Get
(
p_stream
,
SOUT_CFG_PREFIX
"dst"
,
&
val
);
psz_url
=
*
val
.
psz_string
?
val
.
psz_string
:
NULL
;
psz_url
=
*
val
.
psz_string
?
val
.
psz_string
:
NULL
;
if
(
!*
val
.
psz_string
)
free
(
val
.
psz_string
);
if
(
!*
val
.
psz_string
)
free
(
val
.
psz_string
);
p_sys
=
p_stream
->
p_sys
=
malloc
(
sizeof
(
sout_stream_sys_t
)
);
p_sys
=
p_stream
->
p_sys
=
malloc
(
sizeof
(
sout_stream_sys_t
)
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
p_stream
->
p_sys
->
p_session
=
NULL
;
p_stream
->
p_sys
->
p_session
=
NULL
;
msg_Dbg
(
p_this
,
"creating `%s/%s://%s'"
,
psz_access
,
psz_mux
,
psz_url
);
msg_Dbg
(
p_this
,
"creating `%s/%s://%s'"
,
psz_access
,
psz_mux
,
psz_url
);
...
...
src/stream_output/stream_output.c
View file @
4eb79afc
...
@@ -526,6 +526,11 @@ sout_input_t *sout_MuxAddStream( sout_mux_t *p_mux, es_format_t *p_fmt )
...
@@ -526,6 +526,11 @@ sout_input_t *sout_MuxAddStream( sout_mux_t *p_mux, es_format_t *p_fmt )
/* create a new sout input */
/* create a new sout input */
p_input
=
malloc
(
sizeof
(
sout_input_t
)
);
p_input
=
malloc
(
sizeof
(
sout_input_t
)
);
if
(
!
p_input
)
{
msg_Err
(
p_mux
,
"out of memory"
);
return
NULL
;
}
p_input
->
p_sout
=
p_mux
->
p_sout
;
p_input
->
p_sout
=
p_mux
->
p_sout
;
p_input
->
p_fmt
=
p_fmt
;
p_input
->
p_fmt
=
p_fmt
;
p_input
->
p_fifo
=
block_FifoNew
(
p_mux
->
p_sout
);
p_input
->
p_fifo
=
block_FifoNew
(
p_mux
->
p_sout
);
...
...
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