From 77ffe368e9b5045a801360c563623d5bc1c78771 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 14 Aug 2015 14:31:30 +0200 Subject: player: Fix strange volume bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On one of my machines the first song plays fine, but every track thereafter fails playing with the following error message: [volume @ 0x7f6b1c0a1200] [Eval @ 0x7f6b21ab6b60] Invalid chars '.0' at the end of expression '1.0' [volume @ 0x7f6b1c0a1200] Error when evaluating the volume expression '1.0' /!\ create_filter volume (Das Argument ist ungültig) I’m not sure why this fixes the issue, but it might be a bug in ffmpeg. --- src/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.c b/src/player.c index 559ada5..6eaf382 100644 --- a/src/player.c +++ b/src/player.c @@ -240,7 +240,7 @@ static bool openFilter (player_t * const player) { /* volume */ if ((ret = avfilter_graph_create_filter (&player->fvolume, - avfilter_get_by_name ("volume"), NULL, NULL, NULL, + avfilter_get_by_name ("volume"), NULL, "0dB", NULL, player->fgraph)) < 0) { softfail ("create_filter volume"); } -- cgit v1.2.3