emotion: add some help to debug the pipeline.
authorCedric BAIL <cedric.bail@free.fr>
Wed, 29 Jun 2011 17:45:13 +0000 (17:45 +0000)
committerCedric BAIL <cedric.bail@free.fr>
Wed, 29 Jun 2011 17:45:13 +0000 (17:45 +0000)
SVN revision: 60826

legacy/emotion/src/modules/gstreamer/emotion_sink.c

index 20f92b9..2f7ac7c 100644 (file)
@@ -680,6 +680,10 @@ 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: