mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
gst-play: do not set system's volume to 100% by default
Only change the volume if requested
This commit is contained in:
parent
a4b94e6c69
commit
921aa7c52b
1 changed files with 3 additions and 2 deletions
|
@ -160,7 +160,8 @@ play_new (gchar ** uris, const gchar * audio_sink, const gchar * video_sink,
|
||||||
G_CALLBACK (play_about_to_finish), play);
|
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;
|
return play;
|
||||||
}
|
}
|
||||||
|
@ -679,7 +680,7 @@ main (int argc, char **argv)
|
||||||
gboolean interactive = FALSE; /* FIXME: maybe enable by default? */
|
gboolean interactive = FALSE; /* FIXME: maybe enable by default? */
|
||||||
gboolean gapless = FALSE;
|
gboolean gapless = FALSE;
|
||||||
gboolean shuffle = FALSE;
|
gboolean shuffle = FALSE;
|
||||||
gdouble volume = 1.0;
|
gdouble volume = -1;
|
||||||
gchar **filenames = NULL;
|
gchar **filenames = NULL;
|
||||||
gchar *audio_sink = NULL;
|
gchar *audio_sink = NULL;
|
||||||
gchar *video_sink = NULL;
|
gchar *video_sink = NULL;
|
||||||
|
|
Loading…
Reference in a new issue