summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2015-07-23 11:53:52 +0200
committerThibault Saunier <tsaunier@gnome.org>2015-07-23 12:28:14 +0200
commitfdd1456062f64714cd57108380e696d28b14aad6 (patch)
treee36703130553fd1b3e187ef5312937b8aaac55ee
parent3c127d96220446e9e10d1d641746dd51ba6eaec6 (diff)
nle: Enhance debug logging
-rw-r--r--ges/nle/nlecomposition.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/ges/nle/nlecomposition.c b/ges/nle/nlecomposition.c
index ca453ae6..7b69589b 100644
--- a/ges/nle/nlecomposition.c
+++ b/ges/nle/nlecomposition.c
@@ -2496,11 +2496,16 @@ _relink_children_recursively (NleComposition * comp,
_relink_single_node (comp, child, toplevel_seek);
if (G_UNLIKELY (nbchildren < oper->num_sinks))
- GST_ERROR ("Not enough sinkpads to link all objects to the operation ! "
- "%d / %d", oper->num_sinks, nbchildren);
+ GST_ERROR_OBJECT (comp,
+ "%" GST_PTR_FORMAT
+ " Not enough sinkpads to link all objects to the operation ! "
+ "%d / %d", oper, oper->num_sinks, nbchildren);
- if (G_UNLIKELY (nbchildren == 0))
- GST_ERROR ("Operation has no child objects to be connected to !!!");
+ if (G_UNLIKELY (nbchildren == 0)) {
+ GST_ERROR_OBJECT (comp,
+ "Operation %" GST_PTR_FORMAT
+ " has no child objects to be connected to !!!", oper);
+ }
/* Make sure we have enough sinkpads */
}