summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2014-12-01 22:28:52 -0300
committerTim-Philipp Müller <tim@centricular.com>2014-12-11 14:21:10 +0000
commit8ec435420d9d4090cd8d6847ee7de385aeeea69a (patch)
treee04ffaadb5e5a30b0147b05cb6beb654bbc1df22
parent89095e7f91cfbfe625ec2522da49053f1f98baf8 (diff)
gst-play: do not set system's volume to 100% by default
Only change the volume if requested
-rw-r--r--tools/gst-play.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/gst-play.c b/tools/gst-play.c
index c467439e4..cc38a61bf 100644
--- a/tools/gst-play.c
+++ b/tools/gst-play.c
@@ -131,7 +131,8 @@ play_new (gchar ** uris, const gchar * audio_sink, const gchar * video_sink,
G_CALLBACK (play_about_to_finish), play);
}
- play_set_relative_volume (play, initial_volume - 1.0);
+ if (initial_volume != -1)
+ play_set_relative_volume (play, initial_volume - 1.0);
return play;
}
@@ -650,7 +651,7 @@ main (int argc, char **argv)
gboolean interactive = FALSE; /* FIXME: maybe enable by default? */
gboolean gapless = FALSE;
gboolean shuffle = FALSE;
- gdouble volume = 1.0;
+ gdouble volume = -1;
gchar **filenames = NULL;
gchar *audio_sink = NULL;
gchar *video_sink = NULL;