}
path_sanitize( psz_tmp );
p_sys->psz_indexPath = psz_tmp;
- vlc_unlink( p_sys->psz_indexPath );
+ if( p_sys->i_initial_segment != 1 )
+ vlc_unlink( p_sys->psz_indexPath );
}
p_sys->psz_indexUrl = var_GetNonEmptyString( p_access, SOUT_CFG_PREFIX "index-url" );
}
p_sys->i_handle = -1;
- p_sys->i_segment = p_sys->i_initial_segment > 0 ? p_sys->i_initial_segment -1 : 0;
+ p_sys->i_segment = p_sys->i_initial_segment-1;
p_sys->psz_cursegPath = NULL;
p_access->pf_write = Write;
if ( p_sys->i_numsegs == 0 ||
p_sys->i_segment < ( p_sys->i_numsegs + p_sys->i_initial_segment ) )
{
- i_firstseg = p_sys->i_initial_segment == 0 ? 1 : p_sys->i_initial_segment;
+ i_firstseg = p_sys->i_initial_segment;
}
else
{