From e86d1aad02777cf0d669870202ffee2d13832c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20L?= Date: Sat, 20 Apr 2019 19:13:21 +0200 Subject: [PATCH] wsevents: fix SourceMuteStateChange --- src/WSEvents.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/WSEvents.cpp b/src/WSEvents.cpp index 6681c854..629f560c 100644 --- a/src/WSEvents.cpp +++ b/src/WSEvents.cpp @@ -873,7 +873,7 @@ void WSEvents::OnSourceVolumeChange(void* param, calldata_t* data) { * A source has been muted or unmuted. * * @return {String} `sourceName` Source name - * @return {boolean} `mute` Mute status of the source + * @return {boolean} `muted` Mute status of the source * * @api events * @name SourceMuteStateChanged @@ -888,14 +888,14 @@ void WSEvents::OnSourceMuteStateChange(void* param, calldata_t* data) { return; } - bool mute = false; - if (!calldata_get_bool(data, "mute", &mute)) { + bool muted = false; + if (!calldata_get_bool(data, "muted", &muted)) { return; } OBSDataAutoRelease fields = obs_data_create(); obs_data_set_string(fields, "sourceName", obs_source_get_name(source)); - obs_data_set_bool(fields, "mute", mute); + obs_data_set_bool(fields, "muted", muted); self->broadcastUpdate("SourceMuteStateChanged", fields); }