projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4b94e6
)
gst-play: do not set system's volume to 100% by default
author
Thiago Santos
<thiagoss@osg.samsung.com>
Tue, 2 Dec 2014 01:28:52 +0000
(22:28 -0300)
committer
Thiago Santos
<thiagoss@osg.samsung.com>
Tue, 2 Dec 2014 01:29:18 +0000
(22:29 -0300)
Only change the volume if requested
tools/gst-play.c
patch
|
blob
|
history
diff --git
a/tools/gst-play.c
b/tools/gst-play.c
index
8c97103
..
c6f384f
100644
(file)
--- a/
tools/gst-play.c
+++ b/
tools/gst-play.c
@@
-160,7
+160,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;
}
@@
-679,7
+680,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;