gboolean plugin_name = FALSE;
gboolean print_aii = FALSE;
gboolean uri_handlers = FALSE;
+#ifndef GST_DISABLE_OPTION_PARSING
GOptionEntry options[] = {
{"print-all", 'a', 0, G_OPTION_ARG_NONE, &print_all,
N_("Print all elements"), NULL},
};
GOptionContext *ctx;
GError *err = NULL;
+#endif
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
if (!g_thread_supported ())
g_thread_init (NULL);
+#ifndef GST_DISABLE_OPTION_PARSING
ctx = g_option_context_new ("[ELEMENT-NAME | PLUGIN-NAME]");
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
g_option_context_add_group (ctx, gst_init_get_option_group ());
exit (1);
}
g_option_context_free (ctx);
+#else
+ gst_init (&argc, &argv);
+#endif
gst_tools_print_version ("gst-inspect");
gboolean eos_on_shutdown = FALSE;
gchar *savefile = NULL;
gchar *exclude_args = NULL;
+#ifndef GST_DISABLE_OPTION_PARSING
GOptionEntry options[] = {
{"tags", 't', 0, G_OPTION_ARG_NONE, &tags,
N_("Output tags (also known as metadata)"), NULL},
};
GOptionContext *ctx;
GError *err = NULL;
+#endif
gchar **argvn;
GError *error = NULL;
gint res = 0;
gst_alloc_trace_set_flags_all (GST_ALLOC_TRACE_LIVE);
+#ifndef GST_DISABLE_OPTION_PARSING
ctx = g_option_context_new ("PIPELINE-DESCRIPTION");
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
g_option_context_add_group (ctx, gst_init_get_option_group ());
exit (1);
}
g_option_context_free (ctx);
+#else
+ gst_init (&argc, &argv);
+#endif
gst_tools_print_version ("gst-launch");