From 4764c5eacd0cc88febafd1b5c4f1470935df7496 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Sun, 20 Oct 2013 21:25:25 -0700 Subject: [PATCH] Fix seeking before readAudio is called --- Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm b/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm index 7e690fd1e..9f764a83f 100644 --- a/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm +++ b/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm @@ -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;