summaryrefslogtreecommitdiff
path: root/src/modules/module-client-node/client-stream.c
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2018-10-17 10:02:44 +0200
committerWim Taymans <wtaymans@redhat.com>2018-10-17 10:02:44 +0200
commitd27674722a392659ba7d36334ea872eafc79b9ab (patch)
tree8a115ed3cc2b19546afc37855d8d293bfd609fbd /src/modules/module-client-node/client-stream.c
parent6c7d2d0e1ece7412d1ab83d2856dc0d1cda161ba (diff)
improve debug and error handling
Diffstat (limited to 'src/modules/module-client-node/client-stream.c')
-rw-r--r--src/modules/module-client-node/client-stream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/module-client-node/client-stream.c b/src/modules/module-client-node/client-stream.c
index 16e65e6a..3bc52817 100644
--- a/src/modules/module-client-node/client-stream.c
+++ b/src/modules/module-client-node/client-stream.c
@@ -173,7 +173,8 @@ static int impl_node_set_param(struct spa_node *node, uint32_t id, uint32_t flag
if (impl->started)
return -EIO;
if (impl->adapter != impl->cnode) {
- spa_node_set_param(impl->adapter, id, flags, param);
+ if ((res = spa_node_set_param(impl->adapter, id, flags, param)) < 0)
+ return res;
if (this->callbacks && this->callbacks->event)
this->callbacks->event(this->callbacks_data,