Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f27683f4
Commit
f27683f4
authored
Mar 09, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed var_Get in subtitles.c
parent
8b0c5ca4
Changes
1
Hide 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 @
f27683f4
...
...
@@ -251,7 +251,7 @@ static char **paths_to_list( const char *psz_dir, char *psz_path )
char
**
subtitles_Detect
(
input_thread_t
*
p_this
,
char
*
psz_path
,
const
char
*
psz_name_org
)
{
vlc_value_t
fuzzy
;
int
i_
fuzzy
;
int
j
,
i_result2
,
i_sub_count
,
i_fname_len
;
char
*
f_dir
=
NULL
,
*
f_fname
=
NULL
,
*
f_fname_noext
=
NULL
,
*
f_fname_trim
=
NULL
;
char
*
tmp
=
NULL
;
...
...
@@ -315,7 +315,7 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
strcpy_strip_ext
(
f_fname_noext
,
f_fname
);
strcpy_trim
(
f_fname_trim
,
f_fname_noext
);
var_Get
(
p_this
,
"sub-autodetect-fuzzy"
,
&
fuzzy
);
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) */
subdirs
=
paths_to_list
(
f_dir
,
psz_path
);
...
...
@@ -382,7 +382,7 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
/* doesn't contain the movie name, prefer files in f_dir over subdirs */
i_prio
=
SUB_PRIORITY_MATCH_NONE
;
}
if
(
i_prio
>=
fuzzy
.
i_int
)
if
(
i_prio
>=
i_fuzzy
)
{
char
psz_path
[
strlen
(
psz_dir
)
+
strlen
(
psz_name
)
+
1
];
struct
stat
st
;
...
...
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