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
98b71c25
Commit
98b71c25
authored
Dec 10, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify a bit strings handling
parent
f986994e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
19 deletions
+5
-19
src/misc/objects.c
src/misc/objects.c
+5
-19
No files found.
src/misc/objects.c
View file @
98b71c25
...
...
@@ -1015,12 +1015,9 @@ static void PrintObject( vlc_object_t *p_this, const char *psz_prefix )
psz_name
[
0
]
=
'\0'
;
if
(
p_this
->
psz_object_name
)
{
snprintf
(
psz_name
,
50
,
"
\"
%s
\"
"
,
p_this
->
psz_object_name
);
snprintf
(
psz_name
,
49
,
"
\"
%s
\"
"
,
p_this
->
psz_object_name
);
if
(
psz_name
[
48
]
)
{
psz_name
[
48
]
=
'\"'
;
psz_name
[
49
]
=
'\0'
;
}
}
psz_children
[
0
]
=
'\0'
;
...
...
@@ -1032,32 +1029,21 @@ static void PrintObject( vlc_object_t *p_this, const char *psz_prefix )
strcpy
(
psz_children
,
", 1 child"
);
break
;
default:
snprintf
(
psz_children
,
20
,
", %i children"
,
p_this
->
i_children
);
psz_children
[
19
]
=
'\0'
;
snprintf
(
psz_children
,
19
,
", %i children"
,
p_this
->
i_children
);
break
;
}
psz_refcount
[
0
]
=
'\0'
;
if
(
p_this
->
i_refcount
)
{
snprintf
(
psz_refcount
,
20
,
", refcount %i"
,
p_this
->
i_refcount
);
psz_refcount
[
19
]
=
'\0'
;
}
snprintf
(
psz_refcount
,
19
,
", refcount %i"
,
p_this
->
i_refcount
);
psz_thread
[
0
]
=
'\0'
;
if
(
p_this
->
b_thread
)
{
snprintf
(
psz_thread
,
30
,
" (thread %d)"
,
(
int
)
p_this
->
thread_id
);
psz_thread
[
29
]
=
'\0'
;
}
snprintf
(
psz_thread
,
29
,
" (thread %d)"
,
(
int
)
p_this
->
thread_id
);
psz_parent
[
0
]
=
'\0'
;
if
(
p_this
->
p_parent
)
{
snprintf
(
psz_parent
,
20
,
", parent %i"
,
p_this
->
p_parent
->
i_object_id
);
psz_parent
[
19
]
=
'\0'
;
}
snprintf
(
psz_parent
,
19
,
", parent %i"
,
p_this
->
p_parent
->
i_object_id
);
printf
(
" %so %.8i %s%s%s%s%s%s
\n
"
,
psz_prefix
,
p_this
->
i_object_id
,
p_this
->
psz_object_type
,
...
...
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