Commit d8871b68 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ts: fix broken var reading

parent c30102b4
......@@ -407,7 +407,7 @@ static int Open( vlc_object_t *p_this )
p_sys->patfix.i_first_dts = -1;
p_sys->patfix.i_timesourcepid = 0;
p_sys->patfix.status = var_GetBool( p_demux, "ts-patfix" ) ? PAT_WAITING : PAT_FIXTRIED;
p_sys->patfix.status = var_CreateGetBool( p_demux, "ts-patfix" ) ? PAT_WAITING : PAT_FIXTRIED;
/* Init PAT handler */
patpid = GetPID(p_sys, 0);
......@@ -436,7 +436,7 @@ static int Open( vlc_object_t *p_this )
p_sys->i_next_extraid = 1;
p_sys->b_trust_pcr = var_CreateGetBool( p_demux, "ts-trust-pcr" );
p_sys->b_check_pcr_offset = p_sys->b_trust_pcr && var_GetBool(p_demux, "ts-pcr-offsetfix" );
p_sys->b_check_pcr_offset = p_sys->b_trust_pcr && var_CreateGetBool(p_demux, "ts-pcr-offsetfix" );
/* We handle description of an extra PMT */
char* psz_string = var_CreateGetString( p_demux, "ts-extra-pmt" );
......@@ -526,7 +526,7 @@ static int Open( vlc_object_t *p_this )
vlc_stream_Control( p_sys->stream, STREAM_CAN_FASTSEEK,
&p_sys->b_canfastseek );
if( !p_sys->b_access_control && var_GetBool( p_demux, "ts-pmtfix-waitdata" ) )
if( !p_sys->b_access_control && var_CreateGetBool( p_demux, "ts-pmtfix-waitdata" ) )
p_sys->es_creation = DELAY_ES;
else
p_sys->es_creation = CREATE_ES;
......
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