Fix seeking before readAudio is called

CQTexperiment
Chris Moeller 2013-10-20 21:25:25 -07:00
parent 1b4ef20d19
commit 4764c5eacd
1 changed files with 1 additions and 1 deletions

View File

@ -1302,7 +1302,7 @@ static int twosf_info(void * context, const char * name, const char * value)
- (long)seek:(long)frame
{
if (frame < framesRead) {
if (frame < framesRead || emulatorCore == NULL) {
[self closeDecoder];
if (![self initializeDecoder])
return -1;