mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-09 01:29:28 +00:00
Add flag to disable fault_setup()
Original commit message from CVS: Add flag to disable fault_setup()
This commit is contained in:
parent
51cee7f5f7
commit
fbe8f4f657
|
@ -182,6 +182,7 @@ main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
/* options */
|
/* options */
|
||||||
gboolean silent = FALSE;
|
gboolean silent = FALSE;
|
||||||
|
gboolean no_fault = FALSE;
|
||||||
gchar *savefile = NULL;
|
gchar *savefile = NULL;
|
||||||
gchar *exclude_args = NULL;
|
gchar *exclude_args = NULL;
|
||||||
struct poptOption options[] = {
|
struct poptOption options[] = {
|
||||||
|
@ -191,6 +192,8 @@ main(int argc, char *argv[])
|
||||||
"do not output status information of TYPE", "TYPE1,TYPE2,..."},
|
"do not output status information of TYPE", "TYPE1,TYPE2,..."},
|
||||||
{"output", 'o', POPT_ARG_STRING|POPT_ARGFLAG_STRIP, &savefile, 0,
|
{"output", 'o', POPT_ARG_STRING|POPT_ARGFLAG_STRIP, &savefile, 0,
|
||||||
"save xml representation of pipeline to FILE and exit", "FILE"},
|
"save xml representation of pipeline to FILE and exit", "FILE"},
|
||||||
|
{"no_fault", 'f', POPT_ARG_NONE|POPT_ARGFLAG_STRIP, &no_fault, 0,
|
||||||
|
"Do not install a fault handler", NULL},
|
||||||
POPT_TABLEEND
|
POPT_TABLEEND
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -201,7 +204,8 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
free (malloc (8)); /* -lefence */
|
free (malloc (8)); /* -lefence */
|
||||||
|
|
||||||
fault_setup();
|
if (!no_fault)
|
||||||
|
fault_setup();
|
||||||
|
|
||||||
gst_init_with_popt_table (&argc, &argv, options);
|
gst_init_with_popt_table (&argc, &argv, options);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue