gst-launch: add -p option to disable play handler.

Same logic as for the fault handler. This is useful for some debug/tracing tools
that need to grab SIGUSR1 and SIGUSR2 them self.
This commit is contained in:
Stefan Kost 2010-04-28 17:15:41 +03:00
parent c96dec2a06
commit 7c4e0537d3
2 changed files with 9 additions and 1 deletions

View file

@ -45,6 +45,9 @@ Save XML representation of pipeline to FILE and exit
.B \-f, \-\-no_fault .B \-f, \-\-no_fault
Do not install a fault handler Do not install a fault handler
.TP 8 .TP 8
.B \-p, \-\-no_play
Do not install a playback handler (SIGUSR1/2)
.TP 8
.B \-T, \-\-trace .B \-T, \-\-trace
Print memory allocation traces. The feature must be enabled at compile time to Print memory allocation traces. The feature must be enabled at compile time to
work. work.

View file

@ -669,6 +669,7 @@ main (int argc, char *argv[])
/* options */ /* options */
gboolean verbose = FALSE; gboolean verbose = FALSE;
gboolean no_fault = FALSE; gboolean no_fault = FALSE;
gboolean no_play = FALSE;
gboolean trace = FALSE; gboolean trace = FALSE;
gboolean eos_on_shutdown = FALSE; gboolean eos_on_shutdown = FALSE;
gchar *savefile = NULL; gchar *savefile = NULL;
@ -691,6 +692,8 @@ main (int argc, char *argv[])
#endif #endif
{"no-fault", 'f', 0, G_OPTION_ARG_NONE, &no_fault, {"no-fault", 'f', 0, G_OPTION_ARG_NONE, &no_fault,
N_("Do not install a fault handler"), NULL}, N_("Do not install a fault handler"), NULL},
{"no-play", 'p', 0, G_OPTION_ARG_NONE, &no_play,
N_("Do not install a play handler"), NULL},
{"trace", 'T', 0, G_OPTION_ARG_NONE, &trace, {"trace", 'T', 0, G_OPTION_ARG_NONE, &trace,
N_("Print alloc trace (if enabled at compile time)"), NULL}, N_("Print alloc trace (if enabled at compile time)"), NULL},
{"eos-on-shutdown", 'e', 0, G_OPTION_ARG_NONE, &eos_on_shutdown, {"eos-on-shutdown", 'e', 0, G_OPTION_ARG_NONE, &eos_on_shutdown,
@ -740,7 +743,9 @@ main (int argc, char *argv[])
fault_setup (); fault_setup ();
sigint_setup (); sigint_setup ();
play_signal_setup ();
if (!no_play)
play_signal_setup ();
#endif #endif
if (trace) { if (trace) {