]> git.sesse.net Git - vlc/commitdiff
Duplicate: destroy the NumInRange implementation
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 11 Mar 2015 09:20:20 +0000 (10:20 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 11 Mar 2015 09:31:28 +0000 (10:31 +0100)
!!! This code is now BROKEN.

This remove the code from Andy Chenee

modules/stream_out/duplicate.c

index a59d679c5bf46c86e64baa1717e0fd9106b6117a..358d9a2a426d7ab9dd6d4c9d79514c1bcbe3df4c 100644 (file)
@@ -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 )
 {
-    const char *psz = strchr( psz_range, '-' );
-    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;
+    return true;
 }
 
 static bool ESSelected( const es_format_t *fmt, char *psz_select )