Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
ab7d8667
Commit
ab7d8667
authored
Sep 12, 2007
by
Rémi Denis-Courmont
Browse files
DSO friendlyness
parent
7c849b4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/input/subtitles.c
View file @
ab7d8667
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment