mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
node: return ENOTSUP for unimplemented callbacks
This commit is contained in:
parent
0e765de519
commit
5334cecf51
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ static inline int spa_node_port_enum_params_sync(struct spa_node *node,
|
||||||
|
|
||||||
#define spa_node_call(callbacks,method,version,...) \
|
#define spa_node_call(callbacks,method,version,...) \
|
||||||
({ \
|
({ \
|
||||||
int _res = 0; \
|
int _res = -ENOTSUP; \
|
||||||
spa_callbacks_call_res(callbacks, struct spa_node_callbacks, \
|
spa_callbacks_call_res(callbacks, struct spa_node_callbacks, \
|
||||||
_res, method, version, ##__VA_ARGS__); \
|
_res, method, version, ##__VA_ARGS__); \
|
||||||
_res; \
|
_res; \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue