}
if (context->mh) {
- mpg123_close(context->mh);
mpg123_delete(context->mh);
}
}
goto error;
}
- mpg123_close(context->mh);
+ mpg123_delete(context->mh);
context->mh = our_mpg123_new(NULL, NULL);
mpg123_open_feed(context->mh);
mpg123_param(context->mh, MPG123_FORCE_RATE, context->samplerate, 0);
*cur_sample = fseek(context->fp, *cur_sample, whence);
}
- mpg123_close(context->mh);
+ mpg123_delete(context->mh);
context->mh = our_mpg123_new(NULL, NULL);
mpg123_open_feed(context->mh);
mpg123_param(context->mh, MPG123_FORCE_RATE, context->samplerate, 0);