From 523e279e91b70227d23bf6178b2977fcd1648f53 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 25 Nov 2014 19:14:59 +0100 Subject: [PATCH] nlecomposition: Minor debug enhancements --- ges/nle/nlecomposition.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ges/nle/nlecomposition.c b/ges/nle/nlecomposition.c index 7af3212689..0729255356 100644 --- a/ges/nle/nlecomposition.c +++ b/ges/nle/nlecomposition.c @@ -1127,8 +1127,10 @@ ghost_event_probe_handler (GstPad * ghostpad G_GNUC_UNUSED, GstEvent *event; if (GST_IS_BUFFER (info->data)) { - if (priv->waiting_for_buffer) + if (priv->waiting_for_buffer) { + GST_INFO_OBJECT (comp, "update_pipeline DONE"); _restart_task (comp); + } return GST_PAD_PROBE_OK; } @@ -2152,8 +2154,10 @@ _is_ready_to_restart_task (NleComposition * comp, GstEvent * event) GST_DEBUG_GRAPH_SHOW_ALL, name); g_free (name); - if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) + if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) { + GST_INFO_OBJECT (comp, "update_pipeline DONE"); return TRUE; + } priv->waiting_for_buffer = TRUE; return FALSE; @@ -2601,6 +2605,8 @@ _deactivate_stack (NleComposition * comp, gboolean flush_downstream) { GstPad *ptarget; + GST_INFO_OBJECT (comp, "Deactivating current stack (flushing downstream: %d", + flush_downstream); _set_current_bin_to_ready (comp, flush_downstream); ptarget = gst_ghost_pad_get_target (GST_GHOST_PAD (NLE_OBJECT_SRC (comp))); @@ -2616,6 +2622,8 @@ _deactivate_stack (NleComposition * comp, gboolean flush_downstream) if (ptarget) gst_object_unref (ptarget); + GST_INFO_OBJECT (comp, "Stack desctivated"); + /* priv->current = NULL; */ }