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
parent
d77a5472f3
commit
cdf27e4786
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue