examples: Don't call gst_init() and gst_get_option_group()

The latter calls the former at the appropriate time.
This commit is contained in:
Sebastian Dröge 2015-01-17 10:29:36 +01:00
parent 586fe4ea4b
commit 634abb9906
4 changed files with 0 additions and 8 deletions

View file

@ -41,8 +41,6 @@ main (int argc, char *argv[])
GOptionContext *optctx;
GError *error = NULL;
gst_init (&argc, &argv);
optctx = g_option_context_new ("<launch line> - Test RTSP Server, Launch\n\n"
"Example: \"( videotestsrc ! x264enc ! rtph264pay name=pay0 pt=96 )\"");
g_option_context_add_main_entries (optctx, entries, NULL);

View file

@ -97,8 +97,6 @@ main (int argc, char *argv[])
GError *error = NULL;
gchar *str;
gst_init (&argc, &argv);
optctx = g_option_context_new ("<filename.mp4> - Test RTSP Server, MP4");
g_option_context_add_main_entries (optctx, entries, NULL);
g_option_context_add_group (optctx, gst_init_get_option_group ());

View file

@ -42,8 +42,6 @@ main (int argc, char *argv[])
GError *error = NULL;
gchar *str;
gst_init (&argc, &argv);
optctx = g_option_context_new ("<filename.ogg> - Test RTSP Server, OGG");
g_option_context_add_main_entries (optctx, entries, NULL);
g_option_context_add_group (optctx, gst_init_get_option_group ());

View file

@ -68,8 +68,6 @@ main (int argc, char *argv[])
GOptionContext *optctx;
GError *error = NULL;
gst_init (&argc, &argv);
optctx = g_option_context_new ("<uri> - Test RTSP Server, URI");
g_option_context_add_main_entries (optctx, entries, NULL);
g_option_context_add_group (optctx, gst_init_get_option_group ());