summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2011-09-28 05:34:30 +0000
committerCedric BAIL <cedric.bail@free.fr>2011-09-28 05:34:30 +0000
commit796600d1a518f19af91a307633ee08dea6cefe18 (patch)
tree5c032298d14297577e295e06433f0771affe8ddd /legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c
parentc8a62c0cb293b5f3679ffe22dc1cd2ce4764d462 (diff)
emotion: make it possible to dump the complete pipeline not only on failure, but also when it worked.
SVN revision: 63637
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c b/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c
index 3a38edcc72..e8e6817a71 100644
--- a/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c
+++ b/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c
@@ -1578,16 +1578,15 @@ _emotion_gstreamer_video_pipeline_parse(Emotion_Gstreamer_Video *ev,
1578 gst_element_set_state(ev->pipeline, GST_STATE_PLAYING); 1578 gst_element_set_state(ev->pipeline, GST_STATE_PLAYING);
1579 1579
1580 res = gst_element_get_state(ev->pipeline, NULL, NULL, GST_CLOCK_TIME_NONE); 1580 res = gst_element_get_state(ev->pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);
1581 /** NOTE: you need to set: GST_DEBUG_DUMP_DOT_DIR=/tmp EMOTION_ENGINE=gstreamer to save the $EMOTION_GSTREAMER_DOT file in '/tmp' */
1582 /** then call dot -Tpng -oemotion_pipeline.png /tmp/$TIMESTAMP-$EMOTION_GSTREAMER_DOT.dot */
1583 if (getenv("EMOTION_GSTREAMER_DOT"))
1584 GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(ev->pipeline),
1585 GST_DEBUG_GRAPH_SHOW_ALL,
1586 getenv("EMOTION_GSTREAMER_DOT"));
1581 if (!(res == GST_STATE_CHANGE_SUCCESS 1587 if (!(res == GST_STATE_CHANGE_SUCCESS
1582 || res == GST_STATE_CHANGE_NO_PREROLL)) 1588 || res == GST_STATE_CHANGE_NO_PREROLL))
1583 { 1589 {
1584 /** NOTE: you need to set: GST_DEBUG_DUMP_DOT_DIR=/tmp EMOTION_ENGINE=gstreamer to save the $EMOTION_GSTREAMER_DOT file in '/tmp' */
1585 /** then call dot -Tpng -oemotion_pipeline.png /tmp/$TIMESTAMP-$EMOTION_GSTREAMER_DOT.dot */
1586 if (getenv("EMOTION_GSTREAMER_DOT"))
1587 GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(ev->pipeline),
1588 GST_DEBUG_GRAPH_SHOW_ALL,
1589 getenv("EMOTION_GSTREAMER_DOT"));
1590
1591 ERR("Unable to get GST_CLOCK_TIME_NONE."); 1590 ERR("Unable to get GST_CLOCK_TIME_NONE.");
1592 return EINA_FALSE; 1591 return EINA_FALSE;
1593 } 1592 }