diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2018-10-15 11:59:01 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2018-10-15 11:59:01 +0200 |
commit | 33eebc7479149fb1a31a8d458649aeddd77bc44b (patch) | |
tree | 0d2657b2c9ead062f343ee52ee1c0accdb8c758c /src/player.c | |
parent | fb587856d3fb4fe5cbb4d24357030c023b425be9 (diff) | |
download | pianobar-33eebc7479149fb1a31a8d458649aeddd77bc44b.tar.gz pianobar-33eebc7479149fb1a31a8d458649aeddd77bc44b.tar.bz2 pianobar-33eebc7479149fb1a31a8d458649aeddd77bc44b.zip |
Expose audio buffer size setting
See issue #672.
Diffstat (limited to 'src/player.c')
-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 16f5553..952ff18 100644 --- a/src/player.c +++ b/src/player.c @@ -367,6 +367,7 @@ BarPlayerMode BarPlayerGetMode (player_t * const player) { */ static int play (player_t * const player) { assert (player != NULL); + const int64_t minBufferHealth = player->settings->bufferSecs; AVPacket pkt; AVCodecContext * const cctx = player->cctx; @@ -434,7 +435,6 @@ static int play (player_t * const player) { pthread_mutex_unlock (&player->aoplayLock); int64_t bufferHealth = 0; - const int64_t minBufferHealth = 4; /* in seconds */ do { pthread_mutex_lock (&player->aoplayLock); bufferHealth = av_q2d (player->st->time_base) * |