tools: gst-play: enable interative mode by default
authorTim-Philipp Müller <tim@centricular.com>
Thu, 21 May 2015 11:10:40 +0000 (12:10 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 21 May 2015 11:38:53 +0000 (12:38 +0100)
And change --interactive option to --no-interactive.

tools/gst-play-1.0.1
tools/gst-play.c

index 436b0fde8939b243483b0e530101db675a6506ab..6d215d326ba658a1d807119a98dc524c479b63c9 100644 (file)
@@ -32,8 +32,8 @@ Set initial playback volume to VOLUME, where 0.0=silent and 1.0=unchanged
 .B  \-\-shuffle
 Shuffle playlist (play files in random order)
 .TP 8
-.B  \-\-interactive
-Enable control through keyboard interaction in terminal (see below)
+.B  \-\-no-interactive
+Disable control through keyboard interaction in terminal (see below)
 .TP 8
 .B  \-\-gapless
 Enable gapless playback
index 8d2bfe9d7e04dad619df6e54d3c23f8454d0aa5e..f038276622afcefddf2805d418e0fd3a1cd25c3a 100644 (file)
@@ -909,7 +909,7 @@ main (int argc, char **argv)
   GstPlay *play;
   GPtrArray *playlist;
   gboolean print_version = FALSE;
-  gboolean interactive = FALSE; /* FIXME: maybe enable by default? */
+  gboolean interactive = TRUE;
   gboolean gapless = FALSE;
   gboolean shuffle = FALSE;
   gdouble volume = -1;
@@ -932,8 +932,9 @@ main (int argc, char **argv)
         N_("Enable gapless playback"), NULL},
     {"shuffle", 0, 0, G_OPTION_ARG_NONE, &shuffle,
         N_("Shuffle playlist"), NULL},
-    {"interactive", 0, 0, G_OPTION_ARG_NONE, &interactive,
-        N_("Interactive control via keyboard"), NULL},
+    {"no-interactive", 0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE,
+          &interactive,
+        N_("Disable interactive control via the keyboard"), NULL},
     {"volume", 0, 0, G_OPTION_ARG_DOUBLE, &volume,
         N_("Volume"), NULL},
     {"playlist", 0, 0, G_OPTION_ARG_FILENAME, &playlist_file,