[vlc-devel] commit: Handle an error ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Jul 20 18:59:55 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 20 19:59:48 2009 +0300| [ff1dd6825cb45b3aa726660378eecce949f071ff] | committer: Rémi Denis-Courmont 

Handle an error

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ff1dd6825cb45b3aa726660378eecce949f071ff
---

 modules/stream_out/rtp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 6e6b8c0..c496ee3 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -664,6 +664,8 @@ static void SDPHandleUrl( sout_stream_t *p_stream, const char *psz_url )
         if( psz_url[0] == '/' && psz_url[1] == '/' )
             psz_url += 2;
         p_sys->psz_sdp_file = strdup( psz_url );
+        if( p_sys->psz_sdp_file == NULL )
+            goto out;
         decode_URI( p_sys->psz_sdp_file ); /* FIXME? */
         FileSetup( p_stream );
     }




More information about the vlc-devel mailing list