Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
414624ce
Commit
414624ce
authored
May 16, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncurses: use vlc_list_children
parent
8bd54617
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/gui/ncurses.c
modules/gui/ncurses.c
+7
-7
No files found.
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
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