aboutsummaryrefslogtreecommitdiff
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-07 23:23:58 +0100
committerMax Kellermann <max@duempel.org>2013-01-07 23:25:08 +0100
commit960b9a966450f4870a14c81170e3b625f9c13a8a (patch)
tree1066a84c6825aea6f61bf9db8fdf4e54c8f66144 /src/decoder
parentacb45caa4205d6e07c46b14079a7ffe0a2141d3d (diff)
input_stream: add method _cheap_seeking()
Move code from the Vorbis decoder plugin.
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/VorbisDecoderPlugin.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/decoder/VorbisDecoderPlugin.cxx b/src/decoder/VorbisDecoderPlugin.cxx
index 91065536..01a558de 100644
--- a/src/decoder/VorbisDecoderPlugin.cxx
+++ b/src/decoder/VorbisDecoderPlugin.cxx
@@ -139,9 +139,7 @@ vorbis_is_open(struct vorbis_input_stream *vis, OggVorbis_File *vf,
{
vis->decoder = decoder;
vis->input_stream = input_stream;
- vis->seekable = input_stream->seekable &&
- (input_stream->uri == NULL ||
- !uri_has_scheme(input_stream->uri));
+ vis->seekable = input_stream_cheap_seeking(input_stream);
int ret = ov_open_callbacks(vis, vf, NULL, 0, vorbis_is_callbacks);
if (ret < 0) {