summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-08-07 10:47:40 +0200
committerWim Taymans <wtaymans@redhat.com>2020-08-07 10:49:52 +0200
commitcb3f1b51aaa1688052853a52c5fd6b35cfdf77f6 (patch)
tree2e2b15ead780d6cfb3500f51b185b8aef0979c61
parentf4e8ebab51f1647df4c221662f01c03760e94da9 (diff)
adapter: only become started on success
-rw-r--r--spa/plugins/audioconvert/audioadapter.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c
index ad36d5f2..2890edf1 100644
--- a/spa/plugins/audioconvert/audioadapter.c
+++ b/spa/plugins/audioconvert/audioadapter.c
@@ -511,7 +511,6 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
return res;
if ((res = negotiate_buffers(this)) < 0)
return res;
- this->started = true;
break;
case SPA_NODE_COMMAND_Suspend:
configure_format(this, 0, NULL);
@@ -536,6 +535,11 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
return res;
}
}
+ switch (SPA_NODE_COMMAND_ID(command)) {
+ case SPA_NODE_COMMAND_Start:
+ this->started = true;
+ break;
+ }
return res;
}