mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
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:
parent
586fe4ea4b
commit
634abb9906
4 changed files with 0 additions and 8 deletions
|
@ -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);
|
||||
|
|
|
@ -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 ());
|
||||
|
|
|
@ -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 ());
|
||||
|
|
|
@ -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 ());
|
||||
|
|
Loading…
Reference in a new issue