Fix seeking before readAudio is called
parent
1b4ef20d19
commit
4764c5eacd
|
@ -1302,7 +1302,7 @@ static int twosf_info(void * context, const char * name, const char * value)
|
||||||
|
|
||||||
- (long)seek:(long)frame
|
- (long)seek:(long)frame
|
||||||
{
|
{
|
||||||
if (frame < framesRead) {
|
if (frame < framesRead || emulatorCore == NULL) {
|
||||||
[self closeDecoder];
|
[self closeDecoder];
|
||||||
if (![self initializeDecoder])
|
if (![self initializeDecoder])
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue