From 22fdda3bb0e6ee658a71cc2f6d457e6ddb0af0d6 Mon Sep 17 00:00:00 2001 From: cedric Date: Mon, 18 Jul 2011 00:17:21 +0000 Subject: [PATCH] emotion: improve debugging. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/emotion@61456 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/gstreamer/emotion_sink.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/modules/gstreamer/emotion_sink.c b/src/modules/gstreamer/emotion_sink.c index e11071c..a85dd7c 100644 --- a/src/modules/gstreamer/emotion_sink.c +++ b/src/modules/gstreamer/emotion_sink.c @@ -207,6 +207,7 @@ gboolean evas_video_sink_set_caps(GstBaseSink *bsink, GstCaps *caps) priv = sink->priv; if (G_UNLIKELY(!gst_video_format_parse_caps(caps, &priv->format, &width, &height))) { + ERR("Unable to parse caps."); return FALSE; } @@ -690,6 +691,10 @@ gstreamer_video_sink_new(Emotion_Gstreamer_Video *ev, end = ecore_time_get(); DBG("Pause pipeline: %f", end - start); + /** NOTE: you need to set: GST_DEBUG_DUMP_DOT_DIR=/tmp EMOTION_ENGINE=gstreamer to save the $EMOTION_GSTREAMER_DOT file in '/tmp' */ + /** then call dot -Tpng -oemotion_pipeline.png /tmp/$TIMESTAMP-$EMOTION_GSTREAMER_DOT.dot */ + if (getenv("EMOTION_GSTREAMER_DOT")) GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(playbin), GST_DEBUG_GRAPH_SHOW_ALL, getenv("EMOTION_GSTREAMER_DOT")); + start = ecore_time_get(); res = gst_element_get_state(playbin, NULL, NULL, GST_CLOCK_TIME_NONE); if (res != GST_STATE_CHANGE_SUCCESS) @@ -702,10 +707,6 @@ gstreamer_video_sink_new(Emotion_Gstreamer_Video *ev, evas_object_data_set(obj, "_emotion_gstreamer_video", ev); - /** NOTE: you need to set: GST_DEBUG_DUMP_DOT_DIR=/tmp EMOTION_ENGINE=gstreamer to save the $EMOTION_GSTREAMER_DOT file in '/tmp' */ - /** then call dot -Tpng -oemotion_pipeline.png /tmp/$TIMESTAMP-$EMOTION_GSTREAMER_DOT.dot */ - if (getenv("EMOTION_GSTREAMER_DOT")) GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(playbin), GST_DEBUG_GRAPH_SHOW_ALL, getenv("EMOTION_GSTREAMER_DOT")); - return playbin; unref_pipeline: -- 2.7.4