aboutsummaryrefslogtreecommitdiff
path: root/src/decoder/oggflac_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-02 17:06:32 +0100
committerMax Kellermann <max@duempel.org>2008-11-02 17:06:32 +0100
commit4d069b49919da991482ec46daacde62113dad7e8 (patch)
tree1c0d3274b7f50722627911204d42bdcd2bb189b7 /src/decoder/oggflac_plugin.c
parent460b15d29c125a70c37dd484fb0268698331504d (diff)
ogg, ffmpeg: try to decode, even when the stream is not seekable
Ogg and ffmpeg detection was disabled when the stream was not seekable, because the detection was too expensive. Since the curl input stream can now rewind the stream cheaply, we can re-enable detection on streams.
Diffstat (limited to 'src/decoder/oggflac_plugin.c')
-rw-r--r--src/decoder/oggflac_plugin.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/decoder/oggflac_plugin.c b/src/decoder/oggflac_plugin.c
index 506f93f0..412de708 100644
--- a/src/decoder/oggflac_plugin.c
+++ b/src/decoder/oggflac_plugin.c
@@ -281,11 +281,6 @@ static struct tag *oggflac_TagDup(const char *file)
static bool oggflac_try_decode(struct input_stream *inStream)
{
- if (!inStream->seekable)
- /* we cannot seek after the detection, so don't bother
- checking */
- return true;
-
return ogg_stream_type_detect(inStream) == FLAC;
}