mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
manual: Clean up code a bit to be suitable for the docs
This commit is contained in:
parent
cb1657fcea
commit
b110286e95
1 changed files with 1 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue