From 960b9a966450f4870a14c81170e3b625f9c13a8a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 7 Jan 2013 23:23:58 +0100 Subject: input_stream: add method _cheap_seeking() Move code from the Vorbis decoder plugin. --- src/input_stream.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/input_stream.h') diff --git a/src/input_stream.h b/src/input_stream.h index 3a29625af..d5b1dae2e 100644 --- a/src/input_stream.h +++ b/src/input_stream.h @@ -167,6 +167,13 @@ gcc_nonnull(1) void input_stream_lock_wait_ready(struct input_stream *is); +/** + * Determines whether seeking is cheap. This is true for local files. + */ +gcc_pure gcc_nonnull(1) +bool +input_stream_cheap_seeking(const struct input_stream *is); + /** * Seeks to the specified position in the stream. This will most * likely fail if the "seekable" flag is false. -- cgit v1.2.3