Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
d8b4a5b6
Commit
d8b4a5b6
authored
Dec 30, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #1421
parent
389c19e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
modules/demux/playlist/xspf.c
modules/demux/playlist/xspf.c
+11
-9
No files found.
modules/demux/playlist/xspf.c
View file @
d8b4a5b6
...
@@ -125,9 +125,7 @@ int Demux( demux_t *p_demux )
...
@@ -125,9 +125,7 @@ int Demux( demux_t *p_demux )
{
{
input_item_t
*
p_new_input
=
p_demux
->
p_sys
->
pp_tracklist
[
i
];
input_item_t
*
p_new_input
=
p_demux
->
p_sys
->
pp_tracklist
[
i
];
if
(
p_new_input
)
if
(
p_new_input
)
{
input_ItemAddSubItem
(
p_current_input
,
p_new_input
,
VLC_FALSE
);
input_ItemAddSubItem
(
p_current_input
,
p_new_input
,
VLC_FALSE
);
}
vlc_gc_decref
(
p_new_input
);
vlc_gc_decref
(
p_new_input
);
}
}
...
@@ -490,13 +488,9 @@ static vlc_bool_t parse_track_node COMPLEX_INTERFACE
...
@@ -490,13 +488,9 @@ static vlc_bool_t parse_track_node COMPLEX_INTERFACE
if
(
!
strcmp
(
psz_name
,
psz_element
)
)
if
(
!
strcmp
(
psz_name
,
psz_element
)
)
{
{
FREE_ATT
();
FREE_ATT
();
if
(
p_demux
->
p_sys
->
i_identifier
<
if
(
p_demux
->
p_sys
->
i_identifier
==
-
1
||
p_demux
->
p_sys
->
i_identifier
==
p_demux
->
p_sys
->
i_tracklist_entries
)
p_demux
->
p_sys
->
i_tracklist_entries
)
{
p_demux
->
p_sys
->
pp_tracklist
[
p_demux
->
p_sys
->
i_identifier
]
=
p_new_input
;
}
else
{
{
if
(
p_demux
->
p_sys
->
i_identifier
>
if
(
p_demux
->
p_sys
->
i_identifier
>
p_demux
->
p_sys
->
i_tracklist_entries
)
p_demux
->
p_sys
->
i_tracklist_entries
)
...
@@ -508,6 +502,13 @@ static vlc_bool_t parse_track_node COMPLEX_INTERFACE
...
@@ -508,6 +502,13 @@ static vlc_bool_t parse_track_node COMPLEX_INTERFACE
p_demux
->
p_sys
->
i_tracklist_entries
,
p_demux
->
p_sys
->
i_tracklist_entries
,
p_demux
->
p_sys
->
i_tracklist_entries
,
p_demux
->
p_sys
->
i_tracklist_entries
,
p_new_input
);
p_new_input
);
p_demux
->
p_sys
->
i_identifier
=
-
1
;
}
else
{
msg_Err
(
p_demux
,
"Invalid identifier %d"
,
p_demux
->
p_sys
->
i_identifier
);
p_demux
->
p_sys
->
i_identifier
=
-
1
;
return
VLC_FALSE
;
}
}
return
VLC_TRUE
;
return
VLC_TRUE
;
}
}
...
@@ -578,7 +579,8 @@ static vlc_bool_t parse_track_node COMPLEX_INTERFACE
...
@@ -578,7 +579,8 @@ static vlc_bool_t parse_track_node COMPLEX_INTERFACE
return
VLC_FALSE
;
return
VLC_FALSE
;
}
}
}
}
else
if
(
!
strcmp
(
p_handler
->
name
,
"identifier"
)
)
else
if
(
!
strcmp
(
p_handler
->
name
,
"identifier"
)
&&
*
psz_value
>=
'0'
&&
*
psz_value
<=
'9'
)
{
{
p_demux
->
p_sys
->
i_identifier
=
atoi
(
psz_value
);
p_demux
->
p_sys
->
i_identifier
=
atoi
(
psz_value
);
}
}
...
...
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