Commit 9e8d440d authored by Christophe Mutricy's avatar Christophe Mutricy

Don't leak memory

parent f217c5af
...@@ -2189,6 +2189,7 @@ static int InputSourceInit( input_thread_t *p_input, ...@@ -2189,6 +2189,7 @@ static int InputSourceInit( input_thread_t *p_input,
/* Try access_demux if no demux given */ /* Try access_demux if no demux given */
if( *psz_demux == '\0' ) if( *psz_demux == '\0' )
{ {
printf("******** psz_path = %s", psz_path);
in->p_demux = demux2_New( p_input, psz_access, psz_demux, psz_path, in->p_demux = demux2_New( p_input, psz_access, psz_demux, psz_path,
NULL, p_input->p->p_es_out, VLC_FALSE ); NULL, p_input->p->p_es_out, VLC_FALSE );
} }
...@@ -2258,7 +2259,8 @@ static int InputSourceInit( input_thread_t *p_input, ...@@ -2258,7 +2259,8 @@ static int InputSourceInit( input_thread_t *p_input,
{ {
msg_Dbg( p_input, "retrying with access `' demux `' path `%s'", msg_Dbg( p_input, "retrying with access `' demux `' path `%s'",
psz_mrl ); psz_mrl );
psz_demux=strdup(""); psz_demux = "" ;
psz_path = psz_mrl;
in->p_access = access2_New( p_input, in->p_access = access2_New( p_input,
"", "", psz_mrl, "", "", psz_mrl,
p_input->b_preparsing ); p_input->b_preparsing );
...@@ -2344,6 +2346,7 @@ static int InputSourceInit( input_thread_t *p_input, ...@@ -2344,6 +2346,7 @@ static int InputSourceInit( input_thread_t *p_input,
if( in->p_access->psz_path ) if( in->p_access->psz_path )
{ {
const char *psz_a, *psz_d; const char *psz_a, *psz_d;
psz_buf = strdup( in->p_access->psz_path ); psz_buf = strdup( in->p_access->psz_path );
MRLSplit( VLC_OBJECT(p_input), psz_buf, MRLSplit( VLC_OBJECT(p_input), psz_buf,
&psz_a, &psz_d, &psz_real_path ); &psz_a, &psz_d, &psz_real_path );
......
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