[player] Only catch up by lowering sample rate if data_kind is http or pipe

This commit is contained in:
ejurgensen 2016-03-06 10:55:10 +01:00
parent 4d1a45e5d8
commit bd61399e49

View File

@ -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--;