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
1161687d
Commit
1161687d
authored
Oct 03, 2004
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* strip file:// from subtitle autodetect path if present in uri.
parent
0e977dd3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/input/subtitles.c
src/input/subtitles.c
+5
-1
No files found.
src/input/subtitles.c
View file @
1161687d
...
@@ -234,7 +234,6 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
...
@@ -234,7 +234,6 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
char
*
f_dir
,
*
f_fname
,
*
f_fname_noext
,
*
f_fname_trim
,
*
tmp
;
char
*
f_dir
,
*
f_fname
,
*
f_fname_noext
,
*
f_fname_trim
,
*
tmp
;
/* variables to be used for derivatives FILE *f */
/* variables to be used for derivatives FILE *f */
char
*
tmp_fname_noext
,
*
tmp_fname_trim
,
*
tmp_fname_ext
,
*
tmpresult
;
char
*
tmp_fname_noext
,
*
tmp_fname_trim
,
*
tmp_fname_ext
,
*
tmpresult
;
vlc_value_t
fuzzy
;
vlc_value_t
fuzzy
;
int
len
,
i
,
j
,
i_sub_count
;
int
len
,
i
,
j
,
i_sub_count
;
subfn
*
result
;
/* unsorted results */
subfn
*
result
;
/* unsorted results */
...
@@ -245,6 +244,11 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
...
@@ -245,6 +244,11 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
DIR
*
d
;
DIR
*
d
;
struct
dirent
*
de
;
struct
dirent
*
de
;
if
(
!
strncmp
(
psz_fname
,
"file://"
,
7
)
)
{
psz_fname
+=
7
;
}
i_sub_count
=
0
;
i_sub_count
=
0
;
len
=
strlen
(
psz_fname
)
>
256
?
strlen
(
psz_fname
)
:
256
;
len
=
strlen
(
psz_fname
)
>
256
?
strlen
(
psz_fname
)
:
256
;
...
...
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