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
d3489681
Commit
d3489681
authored
Nov 16, 2007
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/mediacontrol_core.c: code playlist_get_list using
playlist_nodeDump as reference.
parent
f063d3e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/control/mediacontrol_core.c
src/control/mediacontrol_core.c
+4
-2
No files found.
src/control/mediacontrol_core.c
View file @
d3489681
...
...
@@ -333,6 +333,7 @@ mediacontrol_playlist_get_list( mediacontrol_Instance *self,
mediacontrol_PlaylistSeq
*
retval
=
NULL
;
int
i_index
;
playlist_t
*
p_playlist
=
self
->
p_playlist
;
playlist_item_t
*
p_root
;
int
i_playlist_size
;
mediacontrol_exception_init
(
exception
);
...
...
@@ -343,13 +344,14 @@ mediacontrol_playlist_get_list( mediacontrol_Instance *self,
}
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
i_playlist_size
=
p_playlist
->
current
.
i_size
;
p_root
=
p_playlist
->
p_root_onelevel
->
pp_children
[
0
];
i_playlist_size
=
p_root
->
i_children
;
retval
=
private_mediacontrol_PlaylistSeq__alloc
(
i_playlist_size
);
for
(
i_index
=
0
;
i_index
<
i_playlist_size
;
i_index
++
)
{
retval
->
data
[
i_index
]
=
input_item_GetURI
(
ARRAY_VAL
(
p_playlist
->
current
,
i_index
)
->
p_input
);
retval
->
data
[
i_index
]
=
strdup
(
p_root
->
pp_children
[
i_index
]
->
p_input
->
psz_name
);
}
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
...
...
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