gst-launch: rename new --no-play command line option to --no-sigusr-handler
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 24 Jun 2010 16:22:13 +0000 (17:22 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 24 Jun 2010 16:27:09 +0000 (17:27 +0100)
--no-play seems a bit confusing.

Fixes #621867.

tools/gst-launch.1.in
tools/gst-launch.c

index f1be89a..20c9d5e 100644 (file)
@@ -42,11 +42,11 @@ Output tags (also known as metadata)
 .B  \-o FILE, \-\-output=FILE
 Save XML representation of pipeline to FILE and exit
 .TP 8
-.B  \-f, \-\-no_fault
+.B  \-f, \-\-no\-fault
 Do not install a fault handler
 .TP 8
-.B  \-p, \-\-no_play
-Do not install a playback handler (SIGUSR1/2)
+.B  \-p, \-\-no\-sigusr-handler
+Do not install signal handlers for SIGUSR1 (play) and SIGUSR2 (stop)
 .TP 8
 .B  \-T, \-\-trace
 Print memory allocation traces. The feature must be enabled at compile time to
index 2340faf..66ad45b 100644 (file)
@@ -375,6 +375,7 @@ sigint_restore (void)
   sigaction (SIGINT, &action, NULL);
 }
 
+/* FIXME 0.11: remove SIGUSR handling (also from man page) */
 static void
 play_handler (int signum)
 {
@@ -685,7 +686,7 @@ main (int argc, char *argv[])
   /* options */
   gboolean verbose = FALSE;
   gboolean no_fault = FALSE;
-  gboolean no_play = FALSE;
+  gboolean no_sigusr_handler = FALSE;
   gboolean trace = FALSE;
   gboolean eos_on_shutdown = FALSE;
   gchar *savefile = NULL;
@@ -708,8 +709,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},
+    {"no-sigusr-handler", 'p', 0, G_OPTION_ARG_NONE, &no_sigusr_handler,
+        N_("Do not install signal handlers for SIGUSR1 and SIGUSR2"), 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,
@@ -760,7 +761,7 @@ main (int argc, char *argv[])
 
   sigint_setup ();
 
-  if (!no_play)
+  if (!no_sigusr_handler)
     play_signal_setup ();
 #endif