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
e4e839be
Commit
e4e839be
authored
Sep 30, 2005
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Cleaner url parsing
parent
76807978
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/access/gnomevfs.c
modules/access/gnomevfs.c
+4
-4
No files found.
modules/access/gnomevfs.c
View file @
e4e839be
...
...
@@ -160,12 +160,12 @@ static int Open( vlc_object_t *p_this )
vlc_UrlParse
(
&
url
,
psz_unescaped
,
0
);
psz_escaped_path
=
gnome_vfs_escape_path_string
(
url
.
psz_path
);
if
(
psz_escaped_path
&&
strcmp
(
psz_escaped_path
,
"/"
)
&&
strcmp
(
psz_escaped_path
,
"//"
)
)
if
(
psz_escaped_path
)
{
/* Now let's reconstruct a valid URI from all that stuff */
psz_path_begin
=
strstr
(
psz_unescaped
,
url
.
psz_path
);
if
(
psz_path_begin
)
*
psz_path_begin
=
'\0'
;
psz_path_begin
=
psz_unescaped
+
strlen
(
psz_unescaped
)
-
strlen
(
url
.
psz_path
);
*
psz_path_begin
=
'\0'
;
psz_uri
=
malloc
(
strlen
(
psz_unescaped
)
+
strlen
(
psz_escaped_path
)
+
1
);
sprintf
(
psz_uri
,
"%s%s"
,
psz_unescaped
,
psz_escaped_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