From 634abb9906d4251d3f4efd5e31fd0d1968b1e457 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 17 Jan 2015 10:29:36 +0100 Subject: [PATCH] examples: Don't call gst_init() and gst_get_option_group() The latter calls the former at the appropriate time. --- examples/test-launch.c | 2 -- examples/test-mp4.c | 2 -- examples/test-ogg.c | 2 -- examples/test-uri.c | 2 -- 4 files changed, 8 deletions(-) diff --git a/examples/test-launch.c b/examples/test-launch.c index 663391c..24e1271 100644 --- a/examples/test-launch.c +++ b/examples/test-launch.c @@ -41,8 +41,6 @@ main (int argc, char *argv[]) GOptionContext *optctx; GError *error = NULL; - gst_init (&argc, &argv); - optctx = g_option_context_new (" - Test RTSP Server, Launch\n\n" "Example: \"( videotestsrc ! x264enc ! rtph264pay name=pay0 pt=96 )\""); g_option_context_add_main_entries (optctx, entries, NULL); diff --git a/examples/test-mp4.c b/examples/test-mp4.c index 3ca0060..263d122 100644 --- a/examples/test-mp4.c +++ b/examples/test-mp4.c @@ -97,8 +97,6 @@ main (int argc, char *argv[]) GError *error = NULL; gchar *str; - gst_init (&argc, &argv); - optctx = g_option_context_new (" - Test RTSP Server, MP4"); g_option_context_add_main_entries (optctx, entries, NULL); g_option_context_add_group (optctx, gst_init_get_option_group ()); diff --git a/examples/test-ogg.c b/examples/test-ogg.c index f3e26b4..c22e638 100644 --- a/examples/test-ogg.c +++ b/examples/test-ogg.c @@ -42,8 +42,6 @@ main (int argc, char *argv[]) GError *error = NULL; gchar *str; - gst_init (&argc, &argv); - optctx = g_option_context_new (" - Test RTSP Server, OGG"); g_option_context_add_main_entries (optctx, entries, NULL); g_option_context_add_group (optctx, gst_init_get_option_group ()); diff --git a/examples/test-uri.c b/examples/test-uri.c index fb6deb7..a5a3399 100644 --- a/examples/test-uri.c +++ b/examples/test-uri.c @@ -68,8 +68,6 @@ main (int argc, char *argv[]) GOptionContext *optctx; GError *error = NULL; - gst_init (&argc, &argv); - optctx = g_option_context_new (" - Test RTSP Server, URI"); g_option_context_add_main_entries (optctx, entries, NULL); g_option_context_add_group (optctx, gst_init_get_option_group ()); -- 2.7.4