diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-08-14 14:31:30 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-09-06 13:26:23 +0200 |
commit | 77ffe368e9b5045a801360c563623d5bc1c78771 (patch) | |
tree | 7762d7c8c4fd7188aa6200e9ca6ab2bb4ec71373 /src | |
parent | 39de1355e8f0565594bac973218d347c1fe02c69 (diff) | |
download | pianobar-77ffe368e9b5045a801360c563623d5bc1c78771.tar.gz pianobar-77ffe368e9b5045a801360c563623d5bc1c78771.tar.bz2 pianobar-77ffe368e9b5045a801360c563623d5bc1c78771.zip |
player: Fix strange volume bug
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.
Diffstat (limited to 'src')
-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 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"); } |