projects
/
gst-aseq-appsrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
73f21de
)
Add a verbose option, it can be useful for debugging
author
Antonio Ospite <ao2@ao2.it>
Mon, 2 Oct 2017 08:25:56 +0000
(10:25 +0200)
committer
Antonio Ospite <ao2@ao2.it>
Tue, 3 Oct 2017 11:28:01 +0000
(13:28 +0200)
gst-aseq-appsrc.c
patch
|
blob
|
history
diff --git
a/gst-aseq-appsrc.c
b/gst-aseq-appsrc.c
index
1b2da94
..
8b939e9
100644
(file)
--- a/
gst-aseq-appsrc.c
+++ b/
gst-aseq-appsrc.c
@@
-392,9
+392,12
@@
main (int argc, char *argv[])
GOptionContext *ctx;
GError *err = NULL;
gchar *ports = NULL;
GOptionContext *ctx;
GError *err = NULL;
gchar *ports = NULL;
+ gboolean verbose = FALSE;
GOptionEntry options[] = {
{"ports", 'p', 0, G_OPTION_ARG_STRING, &ports,
"Comma separated list of sequencer ports", "client:port,..."},
GOptionEntry options[] = {
{"ports", 'p', 0, G_OPTION_ARG_STRING, &ports,
"Comma separated list of sequencer ports", "client:port,..."},
+ {"verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose,
+ "Output status information and property notifications", NULL},
{NULL}
};
{NULL}
};
@@
-433,6
+436,9
@@
main (int argc, char *argv[])
("appsrc name=mysource ! fluiddec ! audioconvert ! autoaudiosink", NULL);
g_assert (app->pipeline);
("appsrc name=mysource ! fluiddec ! audioconvert ! autoaudiosink", NULL);
g_assert (app->pipeline);
+ if (verbose)
+ g_signal_connect (app->pipeline, "deep-notify", G_CALLBACK (gst_object_default_deep_notify), NULL);
+
bus = gst_pipeline_get_bus (GST_PIPELINE (app->pipeline));
g_assert (bus);
bus = gst_pipeline_get_bus (GST_PIPELINE (app->pipeline));
g_assert (bus);