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 <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-02-09 13:44:04 -08:00
parent d77a5472f3
commit cdf27e4786
1 changed files with 2 additions and 2 deletions

View File

@ -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;