manual: Clean up code a bit to be suitable for the docs

This commit is contained in:
Sebastian Dröge 2014-02-04 21:36:18 +01:00
parent cb1657fcea
commit b110286e95

View file

@ -1371,10 +1371,6 @@ main (int argc, char **argv)
<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;
@ -1506,7 +1502,7 @@ main (int argc, char **argv)
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);
@ -1514,8 +1510,6 @@ main (int argc, char **argv)
}
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