#include<gst/gst.h>intmain(intargc,char*argv[]){gbooleansilent=FALSE;gchar*savefile=NULL;GOptionContext*ctx;GError*err=NULL;GOptionEntryentries[]={{"silent",'s',0,G_OPTION_ARG_NONE,&silent,"do not output status information",NULL},{"output",'o',0,G_OPTION_ARG_STRING,&savefile,...
ctx = g_option_context_new("- Your application"); g_option_context_add_main_entries(ctx, entries, NULL); g_option_context_add_group(ctx, gst_init_get_option_group()); if (!g_option_context_parse(ctx, &argc, &argv, &err)) { g_print("Failed to initialize: %s\n", err->message...
context = g_option_context_new (NULL); g_option_context_add_main_entries (context, entries,NULL); g_option_context_set_description (context,"mock-bridge as used in tests\n"); g_option_context_parse (context, &argc, &argv, &error); g_option_context_free (context);if(error) { g_pr...
g_option_context_add_main_entries(ctx,entries,NULL); g_option_context_add_group(ctx,gst_init_get_option_group()); if(!g_option_context_parse(ctx,&argc,&argv,&err)) { g_print("Failed to initialize: %s\n",err->message); g_clear_error(&err); g_option_context_free(ctx); return1...
g_option_context_parse(optctx, NULL, NULL, &error)) { g_printerr("Error parsing options: %s\n", error->message); g_option_context_free(optctx); g_clear_error(&error); return ; } g_option_context_free(optctx); loop = g_main_loop_new(NULL, FALSE); /* create a server instance...
g_option_context_add_main_entries (ctx, entries, NULL); g_option_context_add_group (ctx, gst_init_get_option_group ()); if (!g_option_context_parse (ctx, &argc, &argv, &err)) { g_print ("Failed to initialize: %s\n", err->message); g_error_free (err); ...
g_option_context_add_group (context, xdg_app_context_get_options (arg_context));if(!xdg_app_option_context_parse (context, options, &argc, &argv, XDG_APP_BUILTIN_FLAG_NO_DIR,NULL, cancellable, error))returnFALSE;if(rest_argc ==0)returnusage_error (context,"APP must be specified", ...
g_set_prgname ("gst-stats-" GST_API_VERSION);ctx = g_option_context_new ("FILE"); g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE); g_option_context_add_group (ctx, gst_init_get_option_group ()); if (!g_option_context_parse (ctx, &argc, &argv, &err)) {...
rtsp-server: Fix memory leaks when context parse fails 7 years ago 127 g_option_context_free(optctx); 128 g_clear_error(&error); Reorganize things, prepare for media sharing 13 years ago 129 return-1; 130 } test-mp4: Support filenames with spaces in them. Error out on too few… ...
fun:g_option_context_parse fun:gst_init_check fun:gst_init fun:gst_check_init fun:main } { <Ubuntu Dapper x86_64 dlopen stuff again> Memcheck:Cond obj:/lib/ld-2.3.6.so obj:/lib/ld-2.3.6.so fun:_dl_open obj:/lib/libdl-2.3.6.so obj:/lib/ld-2.3.6.so ...