From 960b9a966450f4870a14c81170e3b625f9c13a8a Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Mon, 7 Jan 2013 23:23:58 +0100
Subject: input_stream: add method _cheap_seeking()

Move code from the Vorbis decoder plugin.
---
 src/decoder/VorbisDecoderPlugin.cxx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'src/decoder')

diff --git a/src/decoder/VorbisDecoderPlugin.cxx b/src/decoder/VorbisDecoderPlugin.cxx
index 910655361..01a558def 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) {
-- 
cgit v1.2.3