From 0005ea3873202ddefaae6466a932c159c08fd1c3 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 11 Mar 2015 20:23:02 +0100 Subject: 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 --- src/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3