Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
39c838b5
Commit
39c838b5
authored
Feb 11, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use vlc_fopen (access() or stat() would be more appropriate though)
parent
4bfb6dac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
src/input/subtitles.c
src/input/subtitles.c
+4
-6
No files found.
src/input/subtitles.c
View file @
39c838b5
...
...
@@ -416,16 +416,14 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
if
(
i_prio
>=
fuzzy
.
i_int
)
{
FILE
*
f
;
char
*
psz_UTF8_path
;
char
*
psz_locale_path
;
char
*
psz_path
;
asprintf
(
&
psz_UTF8_path
,
"%s%s"
,
j
<
0
?
f_dir
:
*
subdirs
,
p_fixed_name
);
psz_locale_path
=
ToLocale
(
psz_UTF8_path
);
asprintf
(
&
psz_path
,
"%s%s"
,
j
<
0
?
f_dir
:
*
subdirs
,
p_fixed_name
);
msg_Dbg
(
p_this
,
"autodetected subtitle: %s with priority %d"
,
p_fixed_name
,
i_prio
);
if
(
(
f
=
fopen
(
psz_locale_path
,
"rt"
)
)
)
/* FIXME: a portable wrapper for stat() or access() would be more suited */
if
(
(
f
=
vlc_fopen
(
psz_path
,
"rt"
)
)
)
{
fclose
(
f
);
LocaleFree
(
psz_locale_path
);
msg_Dbg
(
p_this
,
"autodetected subtitle: %s with priority %d"
,
p_fixed_name
,
i_prio
);
result
[
i_sub_count
].
priority
=
i_prio
;
result
[
i_sub_count
].
psz_fname
=
psz_UTF8_path
;
...
...
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