Commit 53715d2d authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ts: fix scrambled flag change

refactorings... :/
parent 75a0e9e5
......@@ -2587,7 +2587,10 @@ static void UpdateScrambledState( demux_t *p_demux, ts_pid_t *p_pid, bool b_scra
msg_Warn( p_demux, "scrambled state changed on pid %d (%d->%d)",
p_pid->i_pid, SCRAMBLED(*p_pid), b_scrambled );
p_pid->i_flags |= (b_scrambled) ? FLAG_SCRAMBLED : FLAGS_NONE;
if( b_scrambled )
p_pid->i_flags |= FLAG_SCRAMBLED;
else
p_pid->i_flags &= ~FLAG_SCRAMBLED;
if( p_pid->type == TYPE_PES && p_pid->u.p_pes->es.id )
{
......
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