Commit ef99cf2d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

demux: remove constant demux_New() parameter

parent 82f64998
......@@ -275,7 +275,7 @@ enum demux_query_e
*************************************************************************/
VLC_API demux_t *demux_New( vlc_object_t *p_obj, const char *psz_name,
const char *psz_path, stream_t *s, es_out_t *out );
stream_t *s, es_out_t *out );
static inline void demux_Delete(demux_t *demux)
{
......
......@@ -171,7 +171,7 @@ bool Demuxer::create()
if(!p_newstream)
return false;
p_demux = demux_New( VLC_OBJECT(p_realdemux), name.c_str(), "",
p_demux = demux_New( VLC_OBJECT(p_realdemux), name.c_str(),
p_newstream, p_es_out );
if(!p_demux)
{
......
......@@ -139,11 +139,10 @@ static const char* DemuxNameFromExtension( char const* ext,
}
demux_t *demux_New( vlc_object_t *p_obj, const char *psz_name,
const char *psz_location, stream_t *s, es_out_t *out )
stream_t *s, es_out_t *out )
{
assert(s != NULL );
return demux_NewAdvanced( p_obj, NULL, "", psz_name,
psz_location, s, out, false );
return demux_NewAdvanced( p_obj, NULL, "", psz_name, "", s, out, false );
}
struct vlc_demux_private
......
......@@ -267,7 +267,7 @@ static int demux_process_stream(const struct vlc_run_args *args, stream_t *s)
if (out == NULL)
return -1;
demux_t *demux = demux_New(VLC_OBJECT(s), name, "", s, out);
demux_t *demux = demux_New(VLC_OBJECT(s), name, s, out);
if (demux == NULL)
{
es_out_Delete(out);
......
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