FS-4114 --resolve this bug is actually in libsndfile, if its not fixed in the latest version we probably should report it upstream

This commit is contained in:
Anthony Minessale
2012-04-16 11:55:52 -05:00
parent e1db065195
commit ecfe3263e2
2 changed files with 4 additions and 2 deletions

View File

@@ -724,7 +724,9 @@ ima_seek (SF_PRIVATE *psf, int mode, sf_count_t offset)
if (offset == 0)
{ psf_fseek (psf, psf->dataoffset, SEEK_SET) ;
pima->blockcount = 0 ;
pima->decode_block (psf, pima) ;
if (pima->decode_block) {
pima->decode_block (psf, pima) ;
}
pima->samplecount = 0 ;
return 0 ;
} ;