From 7976d6454b3830dd3ebffd583ea7d0564ab4c65a Mon Sep 17 00:00:00 2001 From: Jean-Paul Saman Date: Mon, 23 Oct 2006 19:05:47 +0000 Subject: [PATCH] Patch by aurelien: properly test for NULL. --- THANKS | 1 + modules/stream_out/rtp.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/THANKS b/THANKS index 14a7f11307..da9519ffdb 100644 --- a/THANKS +++ b/THANKS @@ -22,6 +22,7 @@ Arkadiusz Miskiewicz - autoconf and Makefile patches Ari Constâncio - Portuguese localisation Arnaud Gomes-do-Vale - autoconf patches Arwed v. Merkatz - Gamma correction for adjust filter +Aurelien - Patch for modules/stream_output/rtp.c proper test for NULL Basil Achermann - Patch to handle esc and space key events from VLCControl (OSX) Barak Ori - Bidi fixes Benjamin Mironer - Mac OS X fixes diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c index 5decb87f0a..b09c0b43ff 100644 --- a/modules/stream_out/rtp.c +++ b/modules/stream_out/rtp.c @@ -1648,7 +1648,7 @@ static rtsp_client_t *RtspClientGet( sout_stream_t *p_stream, char *psz_session { int i; - if( psz_session ) return NULL; + if( !psz_session ) return NULL; for( i = 0; i < p_stream->p_sys->i_rtsp; i++ ) {