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
8d5e7cc8
Commit
8d5e7cc8
authored
Feb 11, 2010
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: use make_path in subtile_Detect
this also solves uri alteration on Windows (recent regression)
parent
37de4458
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
src/input/subtitles.c
src/input/subtitles.c
+1
-16
No files found.
src/input/subtitles.c
View file @
8d5e7cc8
...
...
@@ -262,22 +262,7 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
if
(
!
psz_name_org
)
return
NULL
;
if
(
!
strncmp
(
psz_name_org
,
"file://"
,
7
)
)
{
psz_name_org
+=
7
;
#if defined( WIN32 )
psz_name_org
++
;
#endif
if
(
!
strncmp
(
psz_name_org
,
"localhost"
,
9
)
)
psz_name_org
+=
9
;
}
#if (DIR_SEP_CHAR != '/')
/* Turn slashes into anti-slashes */
for
(
char
*
s
=
strchr
(
psz_name_org
,
'/'
);
s
;
s
=
strchr
(
s
+
1
,
'/'
)
)
*
s
=
DIR_SEP_CHAR
;
#endif
char
*
psz_fname
=
decode_URI_duplicate
(
psz_name_org
);
char
*
psz_fname
=
make_path
(
psz_name_org
);
if
(
!
psz_fname
)
return
NULL
;
...
...
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