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>
This commit is contained in:
parent
d77a5472f3
commit
cdf27e4786
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue