Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
414624ce
Commit
414624ce
authored
May 16, 2008
by
Rémi Denis-Courmont
Browse files
ncurses: use vlc_list_children
parent
8bd54617
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/ncurses.c
View file @
414624ce
...
...
@@ -1482,8 +1482,6 @@ static void MainBoxWrite( intf_thread_t *p_intf, int l, int x, const char *p_fmt
static
void
DumpObject
(
intf_thread_t
*
p_intf
,
int
*
l
,
vlc_object_t
*
p_obj
,
int
i_level
)
{
vlc_object_yield
(
p_obj
);
if
(
p_obj
->
psz_object_name
)
MainBoxWrite
(
p_intf
,
(
*
l
)
++
,
1
+
2
*
i_level
,
"%s
\"
%s
\"
(%d)"
,
p_obj
->
psz_object_type
,
p_obj
->
psz_object_name
,
...
...
@@ -1491,15 +1489,16 @@ static void DumpObject( intf_thread_t *p_intf, int *l, vlc_object_t *p_obj, int
else
MainBoxWrite
(
p_intf
,
(
*
l
)
++
,
1
+
2
*
i_level
,
"%s (%d)"
,
p_obj
->
psz_object_type
,
p_obj
->
i_object_id
);
int
i
;
for
(
i
=
0
;
i
<
p_obj
->
i_children
;
i
++
)
vlc_list_t
*
list
=
vlc_list_children
(
p_obj
);
vlc_object_release
(
p_obj
);
for
(
int
i
=
0
;
i
<
list
->
i_count
;
i
++
)
{
MainBoxWrite
(
p_intf
,
*
l
,
1
+
2
*
i_level
,
i
==
p_obj
->
i_children
-
1
?
"`-"
:
"|-"
);
DumpObject
(
p_intf
,
l
,
p_obj
->
pp_children
[
i
]
,
i_level
+
1
);
i
==
list
->
i_count
-
1
?
"`-"
:
"|-"
);
DumpObject
(
p_intf
,
l
,
list
->
p_values
[
i
].
p_object
,
i_level
+
1
);
}
vlc_object_release
(
p_obj
);
}
static
void
Redraw
(
intf_thread_t
*
p_intf
,
time_t
*
t_last_refresh
)
...
...
@@ -1985,6 +1984,7 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh )
{
int
l
=
0
;
DrawBox
(
p_sys
->
w
,
y
++
,
0
,
h
,
COLS
,
_
(
" Objects "
),
p_sys
->
b_color
);
vlc_object_yield
(
p_intf
->
p_libvlc
);
DumpObject
(
p_intf
,
&
l
,
VLC_OBJECT
(
p_intf
->
p_libvlc
),
0
);
p_sys
->
i_box_lines_total
=
l
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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