Commit f43078c2 authored by Jean-Paul Saman's avatar Jean-Paul Saman

sanity check

parent 47fd1f61
...@@ -199,7 +199,7 @@ static unsigned char* parseH264ConfigStr( char const* configStr, ...@@ -199,7 +199,7 @@ static unsigned char* parseH264ConfigStr( char const* configStr,
static int Open ( vlc_object_t *p_this ) static int Open ( vlc_object_t *p_this )
{ {
demux_t *p_demux = (demux_t*)p_this; demux_t *p_demux = (demux_t*)p_this;
demux_sys_t *p_sys; demux_sys_t *p_sys = NULL;
MediaSubsessionIterator *iter; MediaSubsessionIterator *iter;
MediaSubsession *sub; MediaSubsession *sub;
...@@ -232,6 +232,8 @@ static int Open ( vlc_object_t *p_this ) ...@@ -232,6 +232,8 @@ static int Open ( vlc_object_t *p_this )
p_demux->pf_demux = Demux; p_demux->pf_demux = Demux;
p_demux->pf_control= Control; p_demux->pf_control= Control;
p_demux->p_sys = p_sys = (demux_sys_t*)malloc( sizeof( demux_sys_t ) ); p_demux->p_sys = p_sys = (demux_sys_t*)malloc( sizeof( demux_sys_t ) );
if( !p_sys ) return VLC_ENOMEM;
p_sys->p_sdp = NULL; p_sys->p_sdp = NULL;
p_sys->scheduler = NULL; p_sys->scheduler = NULL;
p_sys->env = NULL; p_sys->env = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment