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
5cf39390
Commit
5cf39390
authored
Jul 02, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memleaks (corner case).
parent
ac217da0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
modules/misc/rtsp.c
modules/misc/rtsp.c
+12
-0
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+2
-0
No files found.
modules/misc/rtsp.c
View file @
5cf39390
...
...
@@ -492,7 +492,10 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
/* TODO: update SDP, etc... */
if
(
asprintf
(
&
psz_urlc
,
"%s/trackID=%d"
,
p_media
->
psz_rtsp_path
,
p_media
->
i_es
)
<
0
)
{
free
(
p_es
);
return
VLC_ENOMEM
;
}
msg_Dbg
(
p_vod
,
" - ES %4.4s (%s)"
,
(
char
*
)
&
p_fmt
->
i_codec
,
psz_urlc
);
switch
(
p_fmt
->
i_codec
)
...
...
@@ -583,11 +586,19 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
}
/* */
if
(
p_64_sps
&&
p_64_pps
)
{
if
(
asprintf
(
&
p_es
->
psz_fmtp
,
"packetization-mode=1;profile-level-id=%s;"
"sprop-parameter-sets=%s,%s;"
,
hexa
,
p_64_sps
,
p_64_pps
)
<
0
)
{
free
(
p_64_sps
);
free
(
p_64_pps
);
free
(
psz_urlc
);
free
(
p_es
);
return
VLC_ENOMEM
;
}
}
free
(
p_64_sps
);
free
(
p_64_pps
);
}
...
...
@@ -649,6 +660,7 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
default:
msg_Err
(
p_vod
,
"cannot add this stream (unsupported "
"codec: %4.4s)"
,
(
char
*
)
&
p_fmt
->
i_codec
);
free
(
psz_urlc
);
free
(
p_es
);
return
VLC_EGENERIC
;
}
...
...
modules/stream_out/rtsp.c
View file @
5cf39390
...
...
@@ -138,6 +138,8 @@ void RtspUnsetup( rtsp_stream_t *rtsp )
free
(
rtsp
->
psz_path
);
vlc_mutex_destroy
(
&
rtsp
->
lock
);
free
(
rtsp
);
}
...
...
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