summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2015-05-21 12:10:40 +0100
committerTim-Philipp Müller <tim@centricular.com>2015-05-21 12:38:53 +0100
commitb74d4f972a05bffa67e5d618a24c6d525a421e69 (patch)
tree7fd1101a7f75812709e9629d43d5248d62e832d6 /tools
parent4a993cb316e6aaab52def640fa60452568fcb5cb (diff)
downloadgstreamer-plugins-base-b74d4f972a05bffa67e5d618a24c6d525a421e69.tar.gz
tools: gst-play: enable interative mode by default
And change --interactive option to --no-interactive.
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-play-1.0.14
-rw-r--r--tools/gst-play.c7
2 files changed, 6 insertions, 5 deletions
diff --git a/tools/gst-play-1.0.1 b/tools/gst-play-1.0.1
index 436b0fde8..6d215d326 100644
--- a/tools/gst-play-1.0.1
+++ b/tools/gst-play-1.0.1
@@ -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
diff --git a/tools/gst-play.c b/tools/gst-play.c
index 8d2bfe9d7..f03827662 100644
--- a/tools/gst-play.c
+++ b/tools/gst-play.c
@@ -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,