Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d8306009
Commit
d8306009
authored
Nov 10, 2004
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pls.c: ported to new api, at least tried to.
parent
85c1c62e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
7 deletions
+27
-7
modules/demux/playlist/pls.c
modules/demux/playlist/pls.c
+27
-7
No files found.
modules/demux/playlist/pls.c
View file @
d8306009
...
...
@@ -118,6 +118,7 @@ static int Demux( demux_t *p_demux )
int
i_item
=
-
1
;
int
i_new_item
=
0
;
int
i_key_length
;
playlist_item_t
*
p_parent
;
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_demux
,
VLC_OBJECT_PLAYLIST
,
FIND_PARENT
);
...
...
@@ -126,9 +127,15 @@ static int Demux( demux_t *p_demux )
msg_Err
(
p_demux
,
"can't find playlist"
);
return
-
1
;
}
p_parent
=
p_playlist
->
status
.
p_item
;
p_parent
->
input
.
i_type
=
ITEM_TYPE_PLAYLIST
;
p_playlist
->
pp_items
[
p_playlist
->
i_index
]
->
b_autodeletion
=
VLC_TRUE
;
i_position
=
p_playlist
->
i_index
+
1
;
// p_playlist->pp_items[p_playlist->i_index]->b_autodeletion = VLC_TRUE;
/* Change the item to a node */
if
(
p_parent
->
i_children
==
-
1
)
{
playlist_ItemToNode
(
p_playlist
,
p_parent
);
}
while
(
(
psz_line
=
stream_ReadLine
(
p_demux
->
s
)
)
)
{
if
(
!
strncasecmp
(
psz_line
,
"[playlist]"
,
sizeof
(
"[playlist]"
)
-
1
)
)
...
...
@@ -184,8 +191,15 @@ static int Demux( demux_t *p_demux )
{
if
(
psz_mrl
)
{
playlist_Add
(
p_playlist
,
psz_mrl
,
psz_name
,
PLAYLIST_INSERT
,
i_position
);
playlist_item_t
*
p_item
=
playlist_ItemNew
(
p_playlist
,
psz_mrl
,
psz_name
);
playlist_NodeAddItem
(
p_playlist
,
p_item
,
p_parent
->
pp_parents
[
0
]
->
i_view
,
p_parent
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
playlist_CopyParents
(
p_parent
,
p_item
);
if
(
i_duration
!=
-
1
)
{
//playlist_SetDuration( p_playlist, i_position, i_duration );
...
...
@@ -232,13 +246,19 @@ static int Demux( demux_t *p_demux )
/* Add last object */
if
(
psz_mrl
)
{
playlist_Add
(
p_playlist
,
psz_mrl
,
psz_name
,
PLAYLIST_INSERT
,
i_position
);
playlist_item_t
*
p_item
=
playlist_ItemNew
(
p_playlist
,
psz_mrl
,
psz_name
);
playlist_NodeAddItem
(
p_playlist
,
p_item
,
p_parent
->
pp_parents
[
0
]
->
i_view
,
p_parent
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
playlist_CopyParents
(
p_parent
,
p_item
);
if
(
i_duration
!=
-
1
)
{
//playlist_SetDuration( p_playlist, i_position, i_duration );
}
i_position
++
;
free
(
psz_mrl
);
psz_mrl
=
NULL
;
}
...
...
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