From: Mathieu Duponchelle Date: Thu, 10 Jul 2014 14:26:48 +0000 (+0200) Subject: composition: Add and enhance some debug X-Git-Tag: 1.19.3~493^2~1435 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6869c58e28abc2e07854289c03218721b380c2a8;p=platform%2Fupstream%2Fgstreamer.git composition: Add and enhance some debug Co-Authored by: Thibault Saunier --- diff --git a/gnl/gnlcomposition.c b/gnl/gnlcomposition.c index 6e01558..2aecf0f 100644 --- a/gnl/gnlcomposition.c +++ b/gnl/gnlcomposition.c @@ -486,6 +486,8 @@ beach: static void _add_update_gsource (GnlComposition * comp) { + GST_DEBUG_OBJECT (comp, "Adding GSource"); + MAIN_CONTEXT_LOCK (comp); g_main_context_invoke (comp->priv->mcontext, (GSourceFunc) update_pipeline_func, comp); @@ -495,6 +497,8 @@ _add_update_gsource (GnlComposition * comp) static void _add_commit_gsource (GnlComposition * comp) { + GST_DEBUG_OBJECT (comp, "Adding GSource"); + MAIN_CONTEXT_LOCK (comp); g_main_context_invoke (comp->priv->mcontext, (GSourceFunc) _commit_func, comp); @@ -506,6 +510,8 @@ _add_seek_gsource (GnlComposition * comp, GstEvent * event) { SeekData *seekd = g_slice_new0 (SeekData); + GST_DEBUG_OBJECT (comp, "Adding GSource"); + seekd->comp = comp; seekd->event = event; @@ -539,6 +545,8 @@ _initialize_stack_func (GnlComposition * comp) static void _add_initialize_stack_gsource (GnlComposition * comp) { + GST_DEBUG_OBJECT (comp, "Adding GSource"); + MAIN_CONTEXT_LOCK (comp); g_main_context_invoke (comp->priv->mcontext, (GSourceFunc) _initialize_stack_func, comp); @@ -602,6 +610,8 @@ _add_remove_object_gsource (GnlComposition * comp, GnlObject * object) { ChildIOData *childio = g_slice_new0 (ChildIOData); + GST_DEBUG_OBJECT (comp, "Adding GSource"); + childio->comp = comp; childio->object = object; @@ -662,6 +672,8 @@ _add_add_object_gsource (GnlComposition * comp, GnlObject * object) { ChildIOData *childio = g_slice_new0 (ChildIOData); + GST_DEBUG_OBJECT (comp, "Adding GSource"); + childio->comp = comp; childio->object = object; @@ -2973,7 +2985,9 @@ update_pipeline (GnlComposition * comp, GstClockTime currenttime, } /* Unlock all elements in new stack */ - GST_DEBUG_OBJECT (comp, "Setting current stack"); + GST_INFO_OBJECT (comp, "Setting current stack [%" GST_TIME_FORMAT " - %" + GST_TIME_FORMAT "]", GST_TIME_ARGS (priv->segment_start), + GST_TIME_ARGS (priv->segment_stop)); priv->current = stack; if (priv->current) {