summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index af78288819..b45583e860 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -90,6 +90,7 @@ int slave_mode=0;
int player_idle_mode=0;
int quiet=0;
int enable_mouse_movements=0;
+float start_volume = -1;
#if defined(__MINGW32__) || defined(__CYGWIN__)
char * proc_priority=NULL;
@@ -3602,6 +3603,8 @@ if(mpctx->sh_video){
audio_delay += mpctx->sh_video->stream_delay;
}
if(mpctx->sh_audio){
+ if (start_volume >= 0)
+ mixer_setvolume(&mpctx->mixer, start_volume, start_volume);
if (! ignore_start)
audio_delay -= mpctx->sh_audio->stream_delay;
mpctx->delay=-audio_delay;