diff --git a/tools/gst-launch.1.in b/tools/gst-launch.1.in index 8c7e8a4caa..f1be89aecf 100644 --- a/tools/gst-launch.1.in +++ b/tools/gst-launch.1.in @@ -45,6 +45,9 @@ Save XML representation of pipeline to FILE and exit .B \-f, \-\-no_fault Do not install a fault handler .TP 8 +.B \-p, \-\-no_play +Do not install a playback handler (SIGUSR1/2) +.TP 8 .B \-T, \-\-trace Print memory allocation traces. The feature must be enabled at compile time to work. diff --git a/tools/gst-launch.c b/tools/gst-launch.c index a8003fbf6d..91270d8fad 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -669,6 +669,7 @@ main (int argc, char *argv[]) /* options */ gboolean verbose = FALSE; gboolean no_fault = FALSE; + gboolean no_play = FALSE; gboolean trace = FALSE; gboolean eos_on_shutdown = FALSE; gchar *savefile = NULL; @@ -691,6 +692,8 @@ main (int argc, char *argv[]) #endif {"no-fault", 'f', 0, G_OPTION_ARG_NONE, &no_fault, 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, N_("Print alloc trace (if enabled at compile time)"), NULL}, {"eos-on-shutdown", 'e', 0, G_OPTION_ARG_NONE, &eos_on_shutdown, @@ -740,7 +743,9 @@ main (int argc, char *argv[]) fault_setup (); sigint_setup (); - play_signal_setup (); + + if (!no_play) + play_signal_setup (); #endif if (trace) {