Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
ab7d8667
Commit
ab7d8667
authored
Sep 12, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DSO friendlyness
parent
7c849b4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/input/subtitles.c
src/input/subtitles.c
+7
-2
No files found.
src/input/subtitles.c
View file @
ab7d8667
...
@@ -56,7 +56,12 @@
...
@@ -56,7 +56,12 @@
/**
/**
* The possible extensions for subtitle files we support
* 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 */
/* extensions from unsupported types */
/* rt, aqt, jss, js, ass */
/* rt, aqt, jss, js, ass */
...
@@ -163,7 +168,7 @@ int subtitles_Filter( const char *psz_dir_content )
...
@@ -163,7 +168,7 @@ int subtitles_Filter( const char *psz_dir_content )
int
i
;
int
i
;
tmp
++
;
tmp
++
;
for
(
i
=
0
;
sub_exts
[
i
];
i
++
)
for
(
i
=
0
;
sub_exts
[
i
]
[
0
]
;
i
++
)
if
(
strcasecmp
(
sub_exts
[
i
],
tmp
)
==
0
)
if
(
strcasecmp
(
sub_exts
[
i
],
tmp
)
==
0
)
return
1
;
return
1
;
}
}
...
...
Write
Preview
Markdown
is supported
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