From 2d039e691f4f8f7b340a113fc9f69fa5bfa6193a Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 20 Nov 2014 22:41:50 +0100 Subject: command: add drop_buffers This command was actually requested on IRC ages ago, but I forgot about it. The main purpose is that the decoding state can be reset without issuing a seek, in particular in situations where you can't seek. This restarts decoding from the middle of the packet stream; since it discards the packet buffer intentionally, and the decoder will typically not output "incomplete" frames until it has recovered, it can skip a large amount of data. It doesn't clear the byte stream cache - I'm not sure if it should. --- input/cmd_list.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'input/cmd_list.h') diff --git a/input/cmd_list.h b/input/cmd_list.h index 8dc754c774..638fc5bb68 100644 --- a/input/cmd_list.h +++ b/input/cmd_list.h @@ -80,6 +80,8 @@ enum mp_command_type { MP_CMD_AB_LOOP, + MP_CMD_DROP_BUFFERS, + /// Audio Filter commands MP_CMD_AF, MP_CMD_AO_RELOAD, -- cgit v1.2.3