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
ca254964
Commit
ca254964
authored
Apr 07, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1530 : with thr rc interface you can now draw the playlist.
parent
7d55c381
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
modules/control/rc.c
modules/control/rc.c
+14
-6
No files found.
modules/control/rc.c
View file @
ca254964
...
...
@@ -1268,6 +1268,18 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
return
VLC_EGENERIC
;
}
static
void
print_playlist
(
intf_thread_t
*
p_intf
,
playlist_item_t
*
p_item
,
int
i_level
)
{
int
i
;
for
(
i
=
0
;
i
<
p_item
->
i_children
;
i
++
)
{
msg_rc
(
"%*s%s"
,
2
*
i_level
,
""
,
p_item
->
pp_children
[
i
]
->
p_input
->
psz_name
);
if
(
p_item
->
pp_children
[
i
]
->
i_children
>=
0
)
print_playlist
(
p_intf
,
p_item
->
pp_children
[
i
],
i_level
+
1
);
}
}
static
int
Playlist
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
...
...
@@ -1433,12 +1445,8 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"playlist"
)
)
{
msg_Dbg
(
p_playlist
,
"Dumping category"
);
playlist_NodeDump
(
p_playlist
,
p_playlist
->
p_root_category
,
0
);
msg_Dbg
(
p_playlist
,
"Dumping Onelevel"
);
playlist_NodeDump
(
p_playlist
,
p_playlist
->
p_root_onelevel
,
0
);
}
print_playlist
(
p_intf
,
p_playlist
->
p_root_category
,
0
);
else
if
(
!
strcmp
(
psz_cmd
,
"sort"
))
{
playlist_RecursiveNodeSort
(
p_playlist
,
p_playlist
->
p_root_onelevel
,
...
...
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