Commit ccc2b74
Audio: SRC: Add handling for zero size fast_get() allocate
If a non-supported conversion is requested the sizes to
allocate and copy are zero. This addition prints a more
descriptive error for the situation. Without this change
the next null check printed more confusing error "failed to
allocate coefficients".
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>1 parent 632dca3 commit ccc2b74
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
624 | 632 | | |
625 | 633 | | |
626 | 634 | | |
| |||
0 commit comments