Commit a7ca01da authored by Aaron Boxer's avatar Aaron Boxer
Browse files

ingest: support capture of pipeline dot files

parent d98fbee6
Pipeline #20849 failed with stage
in 5 minutes and 18 seconds
......@@ -103,6 +103,10 @@ handle_keyboard (GIOChannel * source, GIOCondition cond, CustomData * data)
} else {
gint val = -1;
switch (g_ascii_tolower (line[0])) {
case 'd':
gst_debug_bin_to_dot_file_with_ts(GST_BIN(data->pipeline),
GST_DEBUG_GRAPH_SHOW_ALL, "pipeline");
break;
case 'p':
data->playing = !data->playing;
gst_element_set_state (data->pipeline,
......@@ -160,6 +164,7 @@ main (int argc, char *argv[])
std::string fname;
if (argc > 2)
fname = argv[2];
g_setenv("GST_DEBUG_DUMP_DOT_DIR", "/tmp", TRUE);
gst_init (&argc, &argv);
/* Initialize our data structure */
......@@ -168,6 +173,7 @@ main (int argc, char *argv[])
/* Print usage map */
g_print ("USAGE: Choose one of the following options, then press enter:\n"
" 'p' to toggle between PAUSE and PLAY\n"
" 'd' to capture pipeline diagram\n"
" 'q' to quit\n"
" 'g' to enter gain mode\n"
" 'h' to enter gain-auto mode\n"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment