Commit a3e97917 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Duplicate: destroy the NumInRange implementation

!!! This code is now BROKEN.

This remove the code from Andy Chenee
parent d78841fd
...@@ -307,25 +307,7 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id, ...@@ -307,25 +307,7 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
*****************************************************************************/ *****************************************************************************/
static bool NumInRange( const char *psz_range, int i_num ) static bool NumInRange( const char *psz_range, int i_num )
{ {
const char *psz = strchr( psz_range, '-' ); return true;
char *end;
int i_start, i_stop;
i_start = strtol( psz_range, &end, 0 );
if( end == psz_range )
i_start = i_num;
if( psz )
{
psz++;
i_stop = strtol( psz, &end, 0 );
if( end == psz )
i_stop = i_num;
}
else
i_stop = i_start;
return i_start <= i_num && i_num <= i_stop;
} }
static bool ESSelected( const es_format_t *fmt, char *psz_select ) static bool ESSelected( const es_format_t *fmt, char *psz_select )
......
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