mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 17:22:29 +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>
|
<programlisting>
|
||||||
<!-- example-begin test-effect-switch.c -->
|
<!-- example-begin test-effect-switch.c -->
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
static gchar *opt_effects = NULL;
|
static gchar *opt_effects = NULL;
|
||||||
|
@ -1506,7 +1502,7 @@ main (int argc, char **argv)
|
||||||
gchar **effect_names, **e;
|
gchar **effect_names, **e;
|
||||||
|
|
||||||
ctx = g_option_context_new ("");
|
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 ());
|
g_option_context_add_group (ctx, gst_init_get_option_group ());
|
||||||
if (!g_option_context_parse (ctx, &argc, &argv, &err)) {
|
if (!g_option_context_parse (ctx, &argc, &argv, &err)) {
|
||||||
g_print ("Error initializing: %s\n", err->message);
|
g_print ("Error initializing: %s\n", err->message);
|
||||||
|
@ -1514,8 +1510,6 @@ main (int argc, char **argv)
|
||||||
}
|
}
|
||||||
g_option_context_free (ctx);
|
g_option_context_free (ctx);
|
||||||
|
|
||||||
GST_FIXME ("Multiple things to check/fix, see source code");
|
|
||||||
|
|
||||||
if (opt_effects != NULL)
|
if (opt_effects != NULL)
|
||||||
effect_names = g_strsplit (opt_effects, ",", -1);
|
effect_names = g_strsplit (opt_effects, ",", -1);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue