The latter calls the former at the appropriate time.
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);
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 ());
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 ());
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 ());