tools/gst-launch.c: Dump one graph per pipeline state-change and state change name (if GST_DEBUG_DUMP_DOT_DIR is set).

Original commit message from CVS:
* tools/gst-launch.c:
Dump one graph per pipeline state-change and state change name
(if GST_DEBUG_DUMP_DOT_DIR is set).
This commit is contained in:
Stefan Kost 2008-02-05 09:24:18 +00:00
parent bb3dfba3f5
commit b6a0640cf9
2 changed files with 15 additions and 13 deletions

View file

@ -1,3 +1,9 @@
2008-02-05 Stefan Kost <ensonic@users.sf.net>
* tools/gst-launch.c:
Dump one graph per pipeline state-change and state change name
(if GST_DEBUG_DUMP_DOT_DIR is set).
2008-02-04 Thijs Vermeir <thijsvermeir@gmail.com> 2008-02-04 Thijs Vermeir <thijsvermeir@gmail.com>
* gst/gstpad.c: * gst/gstpad.c:

View file

@ -485,23 +485,19 @@ event_loop (GstElement * pipeline, gboolean blocking, GstState target_state)
gst_message_parse_state_changed (message, &old, &new, &pending); gst_message_parse_state_changed (message, &old, &new, &pending);
/* debug each state change
GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (pipeline), GST_DEBUG_GRAPH_SHOW_ALL, "gst-launch");
*/
/* we only care about pipeline state change messages */ /* we only care about pipeline state change messages */
if (GST_MESSAGE_SRC (message) != GST_OBJECT_CAST (pipeline)) if (GST_MESSAGE_SRC (message) != GST_OBJECT_CAST (pipeline))
break; break;
/* debug only overall state changes /* dump graph for pipeline state changes */
{ {
gchar *dump_name; gchar *dump_name = g_strdup_printf ("gst-launch.%s_%s",
gst_element_state_get_name (old),
dump_name = g_strdup_printf ("gst-launch.%s",gst_element_state_get_name (new); gst_element_state_get_name (new));
GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (pipeline), GST_DEBUG_GRAPH_SHOW_ALL, dump_name); GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (pipeline),
GST_DEBUG_GRAPH_SHOW_ALL, dump_name);
g_free (dump_name); g_free (dump_name);
} }
*/
/* ignore when we are buffering since then we mess with the states /* ignore when we are buffering since then we mess with the states
* ourselves. */ * ourselves. */