mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 11:43:16 -04:00
pcm_mixer: fix missing NULL check for play_cbs
Fixes Metronome plugin crashing (regression introduced incb04b81) Does *not* fix missing Metronome sound (regression introduced in017dd72) Change-Id: I1da9aa2c937b267a3d5b122c431eaa9f7e748440
This commit is contained in:
parent
f9a5d6fe86
commit
d1abd788d0
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ fill_frame:
|
||||||
|
|
||||||
if (chan->size == 0)
|
if (chan->size == 0)
|
||||||
{
|
{
|
||||||
if (chan->play_cbs->get_more)
|
if (chan->play_cbs && chan->play_cbs->get_more)
|
||||||
{
|
{
|
||||||
chan->play_cbs->get_more(&chan->start, &chan->size);
|
chan->play_cbs->get_more(&chan->start, &chan->size);
|
||||||
ALIGN_AUDIOBUF(chan->start, chan->size);
|
ALIGN_AUDIOBUF(chan->start, chan->size);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue