[vlc-commits] live555: check for error
Rémi Denis-Courmont
git at videolan.org
Sun Aug 23 09:16:07 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 23 10:08:15 2015 +0300| [b2f093c86c9e2957c915cb18ef17d9ae5c4342f1] | committer: Rémi Denis-Courmont
live555: check for error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b2f093c86c9e2957c915cb18ef17d9ae5c4342f1
---
modules/access/live555.cpp | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
index 41d2641..3bdd741 100644
--- a/modules/access/live555.cpp
+++ b/modules/access/live555.cpp
@@ -335,13 +335,14 @@ static int Open ( vlc_object_t *p_this )
if( strcasecmp( p_demux->psz_access, "satip" ) == 0 )
{
- asprintf(&p_sys->p_sdp, "v=0\r\n"
- "o=- 0 %s\r\n"
- "s=SATIP:stream\r\n"
- "i=SATIP RTP Stream\r\n"
- "m=video 0 RTP/AVP 33\r\n"
- "a=control:rtsp://%s\r\n\r\n",
- p_sys->url.psz_host, p_sys->psz_path);
+ if( asprintf(&p_sys->p_sdp, "v=0\r\n"
+ "o=- 0 %s\r\n"
+ "s=SATIP:stream\r\n"
+ "i=SATIP RTP Stream\r\n"
+ "m=video 0 RTP/AVP 33\r\n"
+ "a=control:rtsp://%s\r\n\r\n",
+ p_sys->url.psz_host, p_sys->psz_path) < 0 )
+ abort();
}
if( p_demux->s != NULL )
More information about the vlc-commits
mailing list