aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/alsa/alsa-api-streams.c
diff options
context:
space:
mode:
authorThierry Bultel <thierry.bultel@iot.bzh>2018-06-04 15:23:10 +0200
committerThierry Bultel <thierry.bultel@iot.bzh>2018-06-04 15:23:10 +0200
commite5aff5427335422ba8c8487e880e150d15d0cb0b (patch)
tree67bd1574aa58c1a81551d59e7449b0fb79633069 /plugins/alsa/alsa-api-streams.c
parent07be2d7d1aa89a6e8acf589b1f84e5a5ad992c23 (diff)
Fixed json parsing format errors
The expected format did not match the parameters Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'plugins/alsa/alsa-api-streams.c')
-rw-r--r--plugins/alsa/alsa-api-streams.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/alsa/alsa-api-streams.c b/plugins/alsa/alsa-api-streams.c
index f531ed5..262553a 100644
--- a/plugins/alsa/alsa-api-streams.c
+++ b/plugins/alsa/alsa-api-streams.c
@@ -339,10 +339,11 @@ STATIC AlsaStreamAudioT * AttachOneStream(SoftMixerT *mixer, const char *uid, js
, "zone", &stream->sink
, "source", &stream->source
, "volume", &stream->volume
- , "mute", stream->mute
+ , "mute", &stream->mute
, "params", &paramsJ
, "ramp", &stream->ramp
);
+
if (error) {
AFB_ApiNotice(mixer->api, "ProcessOneStream hal=%s missing 'uid|[info]|zone|source||[volume]|[mute]|[params]' error=%s stream=%s", uid, wrap_json_get_error_string(error), json_object_get_string(streamJ));
goto OnErrorExit;
@@ -424,4 +425,4 @@ PUBLIC int ApiStreamAttach(SoftMixerT *mixer, AFB_ReqT request, const char *uid,
OnErrorExit:
return -1;
-} \ No newline at end of file
+}