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
990fd1cd
Commit
990fd1cd
authored
Jul 16, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
itml: the core knows how to handle
file://localhost/
parent
f9ca2028
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
modules/demux/playlist/itml.c
modules/demux/playlist/itml.c
+7
-17
No files found.
modules/demux/playlist/itml.c
View file @
990fd1cd
...
...
@@ -376,26 +376,16 @@ static bool parse_track_dict( demux_t *p_demux, input_item_t *p_input_item,
if
(
psz_uri
)
{
if
(
strlen
(
psz_uri
)
>
17
&&
!
strncmp
(
psz_uri
,
"file://localhost/"
,
17
)
)
{
/* remove 'localhost/' */
memmove
(
psz_uri
+
7
,
psz_uri
+
17
,
strlen
(
psz_uri
)
-
9
);
msg_Info
(
p_demux
,
"Adding '%s'"
,
psz_uri
);
msg_Info
(
p_demux
,
"Adding '%s'"
,
psz_uri
);
p_new_input
=
input_item_New
(
p_demux
,
psz_uri
,
NULL
);
input_item_AddSubItem
(
p_input_item
,
p_new_input
);
p_new_input
=
input_item_New
(
p_demux
,
psz_uri
,
NULL
);
input_item_AddSubItem
(
p_input_item
,
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
++
;
}
else
{
msg_Err
(
p_demux
,
"Don't know how to handle %s"
,
psz_uri
);
}
p_demux
->
p_sys
->
i_ntracks
++
;
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