Commit b4951bce authored by Laurent Aimar's avatar Laurent Aimar

Fixed forcing a demux while using access_demux for rtp.

Patch provided by Marian Durkovic.
parent 723e71ef
......@@ -609,10 +609,7 @@ static void mpv_decode (demux_t *demux, void *data, block_t *block)
*/
static void *ts_init (demux_t *demux)
{
char *ts_demux = var_CreateGetNonEmptyString (demux, "demux");
void *stream = stream_init (demux, ts_demux ? ts_demux : "ts");
free (ts_demux);
return stream;
return stream_init (demux, *demux->psz_demux ? demux->psz_demux : "ts");
}
......
......@@ -2200,12 +2200,9 @@ static int InputSourceInit( input_thread_t *p_input,
}
}
/* Try access_demux if no demux given */
if( *psz_demux == '\0' )
{
in->p_demux = demux_New( p_input, psz_access, psz_demux, psz_path,
NULL, p_input->p->p_es_out, false );
}
/* Try access_demux first */
in->p_demux = demux_New( p_input, psz_access, psz_demux, psz_path,
NULL, p_input->p->p_es_out, false );
}
else
{
......
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