Commit a799659d authored by Ilkka Ollakka's avatar Ilkka Ollakka

livehttp: don't remove segment-count to be less than number of segments requested

parent 46db71d6
......@@ -603,7 +603,7 @@ static int updateIndexAndDel( sout_access_out_t *p_access, sout_access_out_sys_t
}
// Then take care of deletion
while( p_sys->b_delsegs && p_sys->i_numsegs && ( (vlc_array_count( p_sys->segments_t ) ) >= p_sys->i_numsegs ) )
while( p_sys->b_delsegs && p_sys->i_numsegs && ( (vlc_array_count( p_sys->segments_t ) ) > p_sys->i_numsegs ) )
{
output_segment_t *segment = vlc_array_item_at_index( p_sys->segments_t, 0 );
vlc_array_remove( p_sys->segments_t, 0 );
......
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