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
a3e3a2d1
Commit
a3e3a2d1
authored
Dec 11, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTSP: use calloc
parent
64d1913f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+2
-10
No files found.
modules/stream_out/rtsp.c
View file @
a3e3a2d1
...
...
@@ -87,21 +87,13 @@ static void RtspTimeOut( void *data );
rtsp_stream_t
*
RtspSetup
(
vlc_object_t
*
owner
,
vod_media_t
*
media
,
const
char
*
path
)
{
rtsp_stream_t
*
rtsp
=
malloc
(
sizeof
(
*
rtsp
)
);
rtsp_stream_t
*
rtsp
=
calloc
(
1
,
sizeof
(
*
rtsp
)
);
if
(
rtsp
==
NULL
)
{
if
(
unlikely
(
rtsp
==
NULL
)
)
return
NULL
;
}
rtsp
->
owner
=
owner
;
rtsp
->
vod_media
=
media
;
rtsp
->
sessionc
=
0
;
rtsp
->
sessionv
=
NULL
;
rtsp
->
host
=
NULL
;
rtsp
->
url
=
NULL
;
rtsp
->
psz_path
=
NULL
;
rtsp
->
track_id
=
0
;
vlc_mutex_init
(
&
rtsp
->
lock
);
rtsp
->
timeout
=
var_InheritInteger
(
owner
,
"rtsp-timeout"
);
...
...
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