Commit 05dbe9e6 authored by Aaron Boxer's avatar Aaron Boxer
Browse files

add some command line debugging

parent 2959bc33
Pipeline #19942 failed with stage
in 5 minutes and 26 seconds
......@@ -151,6 +151,9 @@ main (int argc, char *argv[])
GstStateChangeReturn ret;
GIOChannel *io_stdin = nullptr;
for (int i = 0; i < argc; ++i)
g_print("command line: %s\n",argv[i]);
/* Initialize GStreamer */
if (argc > 2)
gst_debug_set_threshold_from_string(argv[2], TRUE);
......@@ -182,6 +185,9 @@ main (int argc, char *argv[])
strcat(pipe, line);
}
fclose(fp);
} else {
g_print("Unable to open file %s", argv[1]);
return 1;
}
// read from command line
......
Markdown is supported
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