Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
effea1b9
Commit
effea1b9
authored
Feb 20, 2010
by
Rémi Denis-Courmont
Browse files
ITML playlist: do not decode URI when creating item (!)
parent
f36b9bc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/demux/playlist/itml.c
View file @
effea1b9
...
...
@@ -347,7 +347,6 @@ static bool parse_track_dict( demux_t *p_demux, input_item_node_t *p_input_node,
VLC_UNUSED
(
psz_element
);
VLC_UNUSED
(
p_handlers
);
input_item_t
*
p_new_input
=
NULL
;
int
i_ret
;
char
*
psz_uri
=
NULL
;
p_track
=
new_track
();
xml_elem_hnd_t
track_elements
[]
=
...
...
@@ -374,22 +373,15 @@ static bool parse_track_dict( demux_t *p_demux, input_item_node_t *p_input_node,
return
false
;
}
psz_uri
=
decode_URI_duplicate
(
p_track
->
location
);
msg_Info
(
p_demux
,
"Adding '%s'"
,
p_track
->
location
);
p_new_input
=
input_item_New
(
p_demux
,
p_track
->
location
,
NULL
);
input_item_node_AppendItem
(
p_input_node
,
p_new_input
);
if
(
psz_uri
)
{
msg_Info
(
p_demux
,
"Adding '%s'"
,
psz_uri
);
p_new_input
=
input_item_New
(
p_demux
,
psz_uri
,
NULL
);
input_item_node_AppendItem
(
p_input_node
,
p_new_input
);
/* add meta info */
add_meta
(
p_new_input
,
p_track
);
vlc_gc_decref
(
p_new_input
);
/* add meta info */
add_meta
(
p_new_input
,
p_track
);
vlc_gc_decref
(
p_new_input
);
p_demux
->
p_sys
->
i_ntracks
++
;
free
(
psz_uri
);
}
p_demux
->
p_sys
->
i_ntracks
++
;
free_track
(
p_track
);
return
i_ret
;
...
...
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