<programlisting>
<!-- example-begin test-effect-switch.c -->
<![CDATA[
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
#include <gst/gst.h>
static gchar *opt_effects = NULL;
gchar **effect_names, **e;
ctx = g_option_context_new ("");
- g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
+ g_option_context_add_main_entries (ctx, options, NULL);
g_option_context_add_group (ctx, gst_init_get_option_group ());
if (!g_option_context_parse (ctx, &argc, &argv, &err)) {
g_print ("Error initializing: %s\n", err->message);
}
g_option_context_free (ctx);
- GST_FIXME ("Multiple things to check/fix, see source code");
-
if (opt_effects != NULL)
effect_names = g_strsplit (opt_effects, ",", -1);
else