From cdf27e47860f356d368a48ff39d52434a2726556 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Wed, 9 Feb 2022 13:44:04 -0800 Subject: [PATCH] CogDecoderMulti: Reset file even if not seekable HTTP Reader now supports limited seeking backwards even in streams, so seek back to file start for repeated file tests, since there are at least a few inputs that all claim to support things like Ogg containers. Signed-off-by: Christopher Snowhill --- Audio/CogPluginMulti.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Audio/CogPluginMulti.m b/Audio/CogPluginMulti.m index 386cfe6f5..422234422 100644 --- a/Audio/CogPluginMulti.m +++ b/Audio/CogPluginMulti.m @@ -90,8 +90,8 @@ NSArray *sortClassesByPriority(NSArray *theClasses) { if([theDecoder open:source]) return YES; [self removeObservers]; - if([source seekable]) - [source seek:0 whence:SEEK_SET]; + // HTTP reader supports limited rewinding + [source seek:0 whence:SEEK_SET]; } theDecoder = nil; return NO;