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
8748391f
Commit
8748391f
authored
Apr 10, 2012
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
subtitles: Do as stated in the doc.
("0 = no subtitles autodetected\n")
parent
c5172792
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/input/subtitles.c
src/input/subtitles.c
+3
-3
No files found.
src/input/subtitles.c
View file @
8748391f
...
@@ -247,7 +247,9 @@ static char **paths_to_list( const char *psz_dir, char *psz_path )
...
@@ -247,7 +247,9 @@ static char **paths_to_list( const char *psz_dir, char *psz_path )
char
**
subtitles_Detect
(
input_thread_t
*
p_this
,
char
*
psz_path
,
char
**
subtitles_Detect
(
input_thread_t
*
p_this
,
char
*
psz_path
,
const
char
*
psz_name_org
)
const
char
*
psz_name_org
)
{
{
int
i_fuzzy
;
int
i_fuzzy
=
var_GetInteger
(
p_this
,
"sub-autodetect-fuzzy"
);
if
(
i_fuzzy
==
0
)
return
NULL
;
int
j
,
i_result2
,
i_sub_count
,
i_fname_len
;
int
j
,
i_result2
,
i_sub_count
,
i_fname_len
;
char
*
f_fname_noext
=
NULL
,
*
f_fname_trim
=
NULL
;
char
*
f_fname_noext
=
NULL
,
*
f_fname_trim
=
NULL
;
...
@@ -297,8 +299,6 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
...
@@ -297,8 +299,6 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
strcpy_strip_ext
(
f_fname_noext
,
f_fname
);
strcpy_strip_ext
(
f_fname_noext
,
f_fname
);
strcpy_trim
(
f_fname_trim
,
f_fname_noext
);
strcpy_trim
(
f_fname_trim
,
f_fname_noext
);
i_fuzzy
=
var_GetInteger
(
p_this
,
"sub-autodetect-fuzzy"
);
result
=
calloc
(
MAX_SUBTITLE_FILES
+
1
,
sizeof
(
vlc_subfn_t
)
);
/* We check it later (simplify code) */
result
=
calloc
(
MAX_SUBTITLE_FILES
+
1
,
sizeof
(
vlc_subfn_t
)
);
/* We check it later (simplify code) */
subdirs
=
paths_to_list
(
f_dir
,
psz_path
);
subdirs
=
paths_to_list
(
f_dir
,
psz_path
);
for
(
j
=
-
1
,
i_sub_count
=
0
;
(
j
==
-
1
)
||
(
j
>=
0
&&
subdirs
!=
NULL
&&
subdirs
[
j
]
!=
NULL
);
j
++
)
for
(
j
=
-
1
,
i_sub_count
=
0
;
(
j
==
-
1
)
||
(
j
>=
0
&&
subdirs
!=
NULL
&&
subdirs
[
j
]
!=
NULL
);
j
++
)
...
...
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