mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
[player] Only catch up by lowering sample rate if data_kind is http or pipe
This commit is contained in:
parent
4d1a45e5d8
commit
bd61399e49
@ -1645,10 +1645,10 @@ player_playback_cb(int fd, short what, void *arg)
|
|||||||
{
|
{
|
||||||
DPRINTF(E_WARN, L_PLAYER, "Behind the playback timer with %" PRIu64 " ticks, initiating catch up\n", overrun);
|
DPRINTF(E_WARN, L_PLAYER, "Behind the playback timer with %" PRIu64 " ticks, initiating catch up\n", overrun);
|
||||||
|
|
||||||
if (cur_streaming->data_kind == DATA_KIND_FILE)
|
if (cur_streaming->data_kind == DATA_KIND_HTTP || cur_streaming->data_kind == DATA_KIND_PIPE)
|
||||||
ticks_skip = 0;
|
|
||||||
else
|
|
||||||
ticks_skip = 2 * PLAYER_TICKS_SKIP + 1;
|
ticks_skip = 2 * PLAYER_TICKS_SKIP + 1;
|
||||||
|
else
|
||||||
|
ticks_skip = 0;
|
||||||
}
|
}
|
||||||
else if (ticks_skip > 0)
|
else if (ticks_skip > 0)
|
||||||
ticks_skip--;
|
ticks_skip--;
|
||||||
|
Loading…
Reference in New Issue
Block a user