player: add support for changing cache size