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
b7091051
Commit
b7091051
authored
Sep 29, 2005
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle correctly some more error cases
parent
5ec39eb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
modules/access/gnomevfs.c
modules/access/gnomevfs.c
+14
-8
No files found.
modules/access/gnomevfs.c
View file @
b7091051
...
@@ -93,7 +93,6 @@ static int Open( vlc_object_t *p_this )
...
@@ -93,7 +93,6 @@ static int Open( vlc_object_t *p_this )
GnomeVFSURI
*
p_uri
=
NULL
;
GnomeVFSURI
*
p_uri
=
NULL
;
GnomeVFSResult
i_ret
;
GnomeVFSResult
i_ret
;
GnomeVFSHandle
*
p_handle
=
NULL
;
GnomeVFSHandle
*
p_handle
=
NULL
;
if
(
!
(
gnome_vfs_init
())
)
if
(
!
(
gnome_vfs_init
())
)
{
{
msg_Warn
(
p_access
,
"couldn't initilize GnomeVFS"
);
msg_Warn
(
p_access
,
"couldn't initilize GnomeVFS"
);
...
@@ -159,18 +158,25 @@ static int Open( vlc_object_t *p_this )
...
@@ -159,18 +158,25 @@ static int Open( vlc_object_t *p_this )
char
*
psz_path_begin
;
char
*
psz_path_begin
;
vlc_UrlParse
(
&
url
,
psz_unescaped
,
0
);
vlc_UrlParse
(
&
url
,
psz_unescaped
,
0
);
psz_escaped_path
=
gnome_vfs_escape_path_string
(
url
.
psz_path
);
psz_escaped_path
=
gnome_vfs_escape_path_string
(
url
.
psz_path
);
if
(
psz_escaped_path
&&
strcmp
(
psz_escaped_path
,
"/"
)
&&
strcmp
(
psz_escaped_path
,
"//"
)
)
{
/* Now let's reconstruct a valid URI from all that stuff */
/* Now let's reconstruct a valid URI from all that stuff */
psz_path_begin
=
strstr
(
psz_unescaped
,
url
.
psz_path
);
psz_path_begin
=
strstr
(
psz_unescaped
,
url
.
psz_path
);
*
psz_path_begin
=
'\0'
;
if
(
psz_path_begin
)
*
psz_path_begin
=
'\0'
;
psz_uri
=
malloc
(
strlen
(
psz_unescaped
)
+
psz_uri
=
malloc
(
strlen
(
psz_unescaped
)
+
strlen
(
psz_escaped_path
)
+
1
);
strlen
(
psz_escaped_path
)
+
1
);
sprintf
(
psz_uri
,
"%s%s"
,
psz_unescaped
,
psz_escaped_path
);
sprintf
(
psz_uri
,
"%s%s"
,
psz_unescaped
,
psz_escaped_path
);
g_free
(
psz_escaped_path
);
g_free
(
psz_escaped_path
);
g_free
(
psz_unescaped
);
g_free
(
psz_unescaped
);
}
else
{
psz_uri
=
psz_unescaped
;
}
}
}
else
else
{
{
...
...
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