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

XSPF: fix leak on colliding track ID

(cherry picked from commit b856ec53290ec4ed5999406552662bde0023eeb6)
parent 5c7442ad
......@@ -522,6 +522,13 @@ static bool parse_track_node COMPLEX_INTERFACE
while( p_sys->i_track_id >= p_sys->i_tracklist_entries )
pp[p_sys->i_tracklist_entries++] = NULL;
}
else if( p_sys->pp_tracklist[p_sys->i_track_id] != NULL )
{
msg_Err( p_demux, "track ID %d collision",
p_sys->i_track_id );
vlc_gc_decref( p_new_input );
return false;
}
p_sys->pp_tracklist[ p_sys->i_track_id ] = p_new_input;
return true;
......
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