DecoderAPI: add decoder_seek_where_frame()

This commit is contained in:
Max Kellermann
2014-08-26 11:27:41 +02:00
parent 23199719d9
commit 8561c9c5a6
3 changed files with 36 additions and 0 deletions

View File

@@ -40,6 +40,8 @@
// IWYU pragma: end_exports
#include <stdint.h>
class Error;
/**
@@ -98,6 +100,16 @@ gcc_pure
unsigned
decoder_seek_where_ms(Decoder &decoder);
/**
* Call this when you have received the DecoderCommand::SEEK command.
*
* @param decoder the decoder object
* @return the destination position for the seek in frames
*/
gcc_pure
uint64_t
decoder_seek_where_frame(Decoder &decoder);
/**
* Call this instead of decoder_command_finished() when seeking has
* failed.