Commit d065d54
module-adapter: Add NULL check for sink buffer
Return error if a sink buffer is not present before it is accessed while
calculating period size in module_adapter_prepare. This might occur when
a pipeline is built incorrectly (without binding) and the sink buffer is
not connected to a module.
Signed-off-by: Wojciech Jablonski <wojciech.jablonski@intel.com>1 parent 4f4b8cf commit d065d54
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
464 | | - | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
465 | 466 | | |
466 | 467 | | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
467 | 472 | | |
468 | 473 | | |
469 | 474 | | |
| |||
0 commit comments