Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
440435ae
Commit
440435ae
authored
May 11, 2010
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediadirs: ensure uri-encoded path is passed to vlc core
parent
58f63289
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
modules/services_discovery/mediadirs.c
modules/services_discovery/mediadirs.c
+3
-7
No files found.
modules/services_discovery/mediadirs.c
View file @
440435ae
...
...
@@ -258,6 +258,8 @@ static void input_item_subitem_added( const vlc_event_t * p_event,
static
int
onNewFileAdded
(
vlc_object_t
*
p_this
,
char
const
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
(
void
)
p_this
;
services_discovery_t
*
p_sd
=
p_data
;
services_discovery_sys_t
*
p_sys
=
p_sd
->
p_sys
;
...
...
@@ -310,7 +312,6 @@ void formatSnapshotItem( input_item_t *p_item )
if
(
!
p_item
)
return
;
char
*
psz_file
=
NULL
;
char
*
psz_option
=
NULL
;
char
*
psz_uri
=
input_item_GetURI
(
p_item
);
...
...
@@ -320,11 +321,7 @@ void formatSnapshotItem( input_item_t *p_item )
/* copy the snapshot mrl as a ArtURL */
input_item_SetArtURL
(
p_item
,
psz_uri
);
psz_file
=
make_path
(
psz_uri
);
if
(
!
psz_file
)
goto
end
;
if
(
asprintf
(
&
psz_option
,
"fake-file=%s"
,
psz_file
)
==
-
1
)
if
(
asprintf
(
&
psz_option
,
"fake-file=%s"
,
psz_uri
)
==
-
1
)
{
psz_option
=
NULL
;
goto
end
;
...
...
@@ -336,7 +333,6 @@ void formatSnapshotItem( input_item_t *p_item )
end:
free
(
psz_option
);
free
(
psz_file
);
free
(
psz_uri
);
}
...
...
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