From 4d069b49919da991482ec46daacde62113dad7e8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 2 Nov 2008 17:06:32 +0100 Subject: 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. --- src/decoder/oggvorbis_plugin.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/decoder/oggvorbis_plugin.c') diff --git a/src/decoder/oggvorbis_plugin.c b/src/decoder/oggvorbis_plugin.c index 47192ae68..d5402aa66 100644 --- a/src/decoder/oggvorbis_plugin.c +++ b/src/decoder/oggvorbis_plugin.c @@ -364,11 +364,6 @@ static struct tag *oggvorbis_TagDup(const char *file) static bool oggvorbis_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) == VORBIS; } -- cgit v1.2.3