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

DSO friendlyness

parent 7c849b4c
......@@ -56,7 +56,12 @@
/**
* The possible extensions for subtitle files we support
*/
static const char * sub_exts[] = { "utf", "utf8", "utf-8", "sub", "srt", "smi", "txt", "ssa", "idx", NULL };
static const char const sub_exts[][6] = {
"utf", "utf8", "utf-8",
"sub", "srt", "smi",
"txt", "ssa", "idx", ""
};
/* extensions from unsupported types */
/* rt, aqt, jss, js, ass */
......@@ -163,7 +168,7 @@ int subtitles_Filter( const char *psz_dir_content )
int i;
tmp++;
for( i = 0; sub_exts[i]; i++ )
for( i = 0; sub_exts[i][0]; i++ )
if( strcasecmp( sub_exts[i], tmp ) == 0 )
return 1;
}
......
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