[vlc-devel] commit: Do not generate a SDP file if SDP is not yet defined (fixes: #2981) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Jul 20 18:53:02 CEST 2009
vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 20 19:51:30 2009 +0300| [195fda9e37b8c06efd8bd7e4d490b89b42ddb756] | committer: Rémi Denis-Courmont
Do not generate a SDP file if SDP is not yet defined (fixes: #2981)
(cherry picked from commit 96f5cc4d7641d69cfcf108b033edf5c8291a1895)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=195fda9e37b8c06efd8bd7e4d490b89b42ddb756
---
modules/stream_out/rtp.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index a712ba2..065db41 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -1401,6 +1401,9 @@ static int FileSetup( sout_stream_t *p_stream )
sout_stream_sys_t *p_sys = p_stream->p_sys;
FILE *f;
+ if( p_sys->psz_sdp == NULL )
+ return VLC_EGENERIC; /* too early */
+
if( ( f = utf8_fopen( p_sys->psz_sdp_file, "wt" ) ) == NULL )
{
msg_Err( p_stream, "cannot open file '%s' (%m)",
More information about the vlc-devel
mailing list