In amem.c:
Code: Select all
static void Stop (audio_output_t *aout)
{
aout_sys_t *sys = aout->sys;
if (sys->cleanup != NULL)
sys->cleanup (sys->opaque); <--- crash here
sys->ready = false;
}
I am using libvlc_audio_set_format rather than libvlc_audio_set_format_callbacks.
I fixed it locally by doing this:
Code: Select all
static void Stop (audio_output_t *aout)
{
aout_sys_t *sys = aout->sys;
if (sys->setup != NULL && sys->cleanup != NULL)
sys->cleanup (sys->opaque);
sys->ready = false;
}