1
0
Fork 0
forked from len0rd/rockbox

fix surround & pbe dsp crash

check handle before clean up buffer in flush().

Change-Id: I36a130c45c9f5dce97aa723ef98922b6935ead75
This commit is contained in:
Chiwen Chang 2015-01-28 17:30:54 +11:00 committed by Gerrit Rockbox
parent f35d63bc21
commit 572b36a51a
2 changed files with 4 additions and 2 deletions

View file

@ -97,7 +97,8 @@ static void dsp_surround_flush(void)
return;
unsigned int total_len = B0_DLY + B2_DLY + BB_DLY + HH_DLY + CL_DLY;
memset(core_get_data(handle),0,sizeof(int32_t) * total_len);
if (handle > 0)
memset(core_get_data(handle),0,sizeof(int32_t) * total_len);
}
static void surround_update_filter(unsigned int fout)