Skip to content

Commit

Permalink
Update events.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cpyarger authored Jan 23, 2021
1 parent dba53af commit e12cdf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ void events::OnSourceVolumeChange(void *param, calldata_t *data)
{
auto self = reinterpret_cast<events *>(param);

OBSSourceAutoRelease source = calldata_get_pointer<obs_source_t>(data, "source");
OBSSource source = calldata_get_pointer<obs_source_t>(data, "source");
if (!source) {
return;
}
Expand All @@ -1171,6 +1171,7 @@ void events::OnSourceVolumeChange(void *param, calldata_t *data)
obs_data_set_string(fields, "sourceName", obs_source_get_name(source));
obs_data_set_double(fields, "volume", volume);
self->broadcastUpdate("SourceVolumeChanged", fields);
obs_source_release(source);
}

/**
Expand Down

0 comments on commit e12cdf9

Please sign in to comment.