mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
plugins: use macros for input checks
That way we can compile them out if we want
This commit is contained in:
parent
32368d741d
commit
b05d82d514
16 changed files with 296 additions and 415 deletions
|
|
@ -26,8 +26,7 @@ SpaResult
|
|||
spa_enum_handle_factory (const SpaHandleFactory **factory,
|
||||
uint32_t index)
|
||||
{
|
||||
if (factory == NULL)
|
||||
return SPA_RESULT_INVALID_ARGUMENTS;
|
||||
spa_return_val_if_fail (factory != NULL, SPA_RESULT_INVALID_ARGUMENTS);
|
||||
|
||||
switch (index) {
|
||||
case 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue