[vlc-commits] rtp: fix crash on initialization error

Pierre Ynard git at videolan.org
Sat Nov 26 03:45:07 CET 2011


vlc/vlc-1.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sat Nov 26 03:43:29 2011 +0100| [82e23c96e700b6cbf344028a3f57c00d76c745e0] | committer: Pierre Ynard

rtp: fix crash on initialization error

Due to an uninitialized variable. Untested.

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

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

diff --git a/modules/access/rtp/rtp.c b/modules/access/rtp/rtp.c
index 03f882f..8cd6c42 100755
--- a/modules/access/rtp/rtp.c
+++ b/modules/access/rtp/rtp.c
@@ -265,6 +265,7 @@ static int Open (vlc_object_t *obj)
     p_sys->max_dropout  = var_CreateGetInteger (obj, "rtp-max-dropout");
     p_sys->max_misorder = var_CreateGetInteger (obj, "rtp-max-misorder");
     p_sys->framed_rtp   = (tp == IPPROTO_TCP);
+    p_sys->thread_ready = false;
 
     demux->pf_demux   = NULL;
     demux->pf_control = Control;



More information about the vlc-commits mailing list