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
395a801c
Commit
395a801c
authored
Apr 08, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve playlist drawing with rc.
parent
88ff21f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
modules/control/rc.c
modules/control/rc.c
+12
-1
No files found.
modules/control/rc.c
View file @
395a801c
...
@@ -1271,9 +1271,16 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1271,9 +1271,16 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
static
void
print_playlist
(
intf_thread_t
*
p_intf
,
playlist_item_t
*
p_item
,
int
i_level
)
static
void
print_playlist
(
intf_thread_t
*
p_intf
,
playlist_item_t
*
p_item
,
int
i_level
)
{
{
int
i
;
int
i
;
char
psz_buffer
[
MSTRTIME_MAX_SIZE
];
for
(
i
=
0
;
i
<
p_item
->
i_children
;
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
]
->
p_input
->
i_duration
!=
-
1
)
{
secstotimestr
(
psz_buffer
,
p_item
->
pp_children
[
i
]
->
p_input
->
i_duration
/
1000000
);
msg_rc
(
"|%*s- %s (%s)"
,
2
*
i_level
,
""
,
p_item
->
pp_children
[
i
]
->
p_input
->
psz_name
,
psz_buffer
);
}
else
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
)
if
(
p_item
->
pp_children
[
i
]
->
i_children
>=
0
)
print_playlist
(
p_intf
,
p_item
->
pp_children
[
i
],
i_level
+
1
);
print_playlist
(
p_intf
,
p_item
->
pp_children
[
i
],
i_level
+
1
);
...
@@ -1445,7 +1452,11 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1445,7 +1452,11 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
}
}
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"playlist"
)
)
else
if
(
!
strcmp
(
psz_cmd
,
"playlist"
)
)
{
msg_rc
(
"+----[ Playlist ]"
);
print_playlist
(
p_intf
,
p_playlist
->
p_root_category
,
0
);
print_playlist
(
p_intf
,
p_playlist
->
p_root_category
,
0
);
msg_rc
(
"+----[ End of playlist ]"
);
}
else
if
(
!
strcmp
(
psz_cmd
,
"sort"
))
else
if
(
!
strcmp
(
psz_cmd
,
"sort"
))
{
{
...
...
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