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
fa0e80f2
Commit
fa0e80f2
authored
Mar 03, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the unneeded vlc_object_destroy logger hack, and fix wrapping.
Signed-off-by:
Rémi Denis-Courmont
<
rem@videolan.org
>
parent
b96154a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
23 deletions
+21
-23
src/misc/objects.c
src/misc/objects.c
+21
-23
No files found.
src/misc/objects.c
View file @
fa0e80f2
...
...
@@ -359,26 +359,24 @@ static void vlc_object_destroy( vlc_object_t *p_this )
{
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
);
/* FIXME: ugly hack - we cannot use the message queue after
* msg_Destroy(). */
vlc_object_t
*
logger
=
p_this
;
if
(
(
vlc_object_t
*
)
p_this
->
p_libvlc
==
p_this
)
logger
=
NULL
;
/* Sanity checks */
if
(
p_this
->
i_children
)
{
int
i
;
fprintf
(
stderr
,
"ERROR: cannot delete object (%i, %s) with %d children
\n
"
,
p_this
->
i_object_id
,
p_this
->
psz_object_name
,
p_this
->
i_children
);
fprintf
(
stderr
,
"ERROR: cannot delete object (%i, %s) with %d children
\n
"
,
p_this
->
i_object_id
,
p_this
->
psz_object_name
,
p_this
->
i_children
);
for
(
i
=
0
;
i
<
p_this
->
i_children
;
i
++
)
{
fprintf
(
stderr
,
"ERROR: Remaining children object (id:%i, type:%s, name:%s)
\n
"
,
p_this
->
pp_children
[
i
]
->
i_object_id
,
p_this
->
pp_children
[
i
]
->
psz_object_type
,
p_this
->
pp_children
[
i
]
->
psz_object_name
);
fprintf
(
stderr
,
"ERROR: Remaining children object "
"(id:%i, type:%s, name:%s)
\n
"
,
p_this
->
pp_children
[
i
]
->
i_object_id
,
p_this
->
pp_children
[
i
]
->
psz_object_type
,
p_this
->
pp_children
[
i
]
->
psz_object_name
);
}
fflush
(
stderr
);
abort
();
...
...
@@ -386,13 +384,13 @@ static void vlc_object_destroy( vlc_object_t *p_this )
if
(
p_this
->
p_parent
)
{
fprintf
(
stderr
,
"ERROR: cannot delete object (id:%i, type:%s, name:%s) with a parent (id:%i, type:%s, name:%s)
\n
"
,
p_this
->
i_object_id
,
p_this
->
psz_object_type
,
p_this
->
psz_object_nam
e
,
p_this
->
p_parent
->
i_object_id
,
p_this
->
p_parent
->
psz_object_type
,
p_this
->
p_parent
->
psz_object_name
);
fprintf
(
stderr
,
"ERROR: cannot delete object (id:%i, type:%s, name:%s) "
"with a parent (id:%i, type:%s, name:%s)
\n
"
,
p_this
->
i_object_id
,
p_this
->
psz_object_typ
e
,
p_this
->
psz_object_name
,
p_this
->
p_parent
->
i_object_id
,
p_this
->
p_parent
->
psz_object_type
,
p_this
->
p_parent
->
psz_object_name
);
fflush
(
stderr
);
abort
();
}
...
...
@@ -421,10 +419,10 @@ static void vlc_object_destroy( vlc_object_t *p_this )
{
/* We are leaking this object */
fprintf
(
stderr
,
"ERROR: We are
leaking object (id:%i, type:%s, name:%s)
\n
"
,
p_global
->
pp_objects
[
i
]
->
i_object_id
,
p_global
->
pp_objects
[
i
]
->
psz_object_type
,
p_global
->
pp_objects
[
i
]
->
psz_object_name
);
"ERROR:
leaking object (id:%i, type:%s, name:%s)
\n
"
,
p_global
->
pp_objects
[
i
]
->
i_object_id
,
p_global
->
pp_objects
[
i
]
->
psz_object_type
,
p_global
->
pp_objects
[
i
]
->
psz_object_name
);
fflush
(
stderr
);
}
/* Strongly abort, cause we want these to be fixed */
...
...
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