diff options
| author | Lars-Dominik Braun <lars@6xq.net> | 2015-03-11 20:23:02 +0100 | 
|---|---|---|
| committer | Lars-Dominik Braun <lars@6xq.net> | 2015-03-11 20:23:02 +0100 | 
| commit | 0005ea3873202ddefaae6466a932c159c08fd1c3 (patch) | |
| tree | 1f08a3e418553ab1b4e3e8825d2b13229d68f3e5 | |
| parent | 310900e4be52d11388792d776d9f6b89380bbecd (diff) | |
| download | pianobar-0005ea3873202ddefaae6466a932c159c08fd1c3.tar.gz pianobar-0005ea3873202ddefaae6466a932c159c08fd1c3.tar.bz2 pianobar-0005ea3873202ddefaae6466a932c159c08fd1c3.zip | |
player: Fix initial track volume
The initial volume setup was ignored as well. Introduced by previous
commit 310900e4be52d11388792d776d9f6b89380bbecd.  See
https://github.com/PromyLOPh/pianobar/commit/310900e4be52d11388792d776d9f6b89380bbecd
| -rw-r--r-- | src/player.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/player.c b/src/player.c index bc3d335..856b555 100644 --- a/src/player.c +++ b/src/player.c @@ -244,7 +244,6 @@ static bool openFilter (player_t * const player) {  			player->fgraph)) < 0) {  		softfail ("create_filter volume");  	} -	BarPlayerSetVolume (player);  	/* aformat: convert float samples into something more usable */  	AVFilterContext *fafmt = NULL; @@ -431,6 +430,7 @@ void *BarPlayerThread (void *data) {  		if (openStream (player)) {  			if (openFilter (player) && openDevice (player)) {  				player->mode = PLAYER_PLAYING; +				BarPlayerSetVolume (player);  				retry = play (player) == AVERROR_INVALIDDATA;  			} else {  				/* filter missing or audio device busy */ | 
