mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
use obs_data_t* in Event function
This commit is contained in:
parent
8d39752bda
commit
4af46ac2b9
@ -1516,7 +1516,7 @@ void WSEvents::OnStudioModeSwitched(bool checked) {
|
||||
* @category general
|
||||
* @since 4.7.0
|
||||
*/
|
||||
void WSEvents::OnBroadcastCustomMessage(QString realm, OBSDataAutoRelease data) {
|
||||
void WSEvents::OnBroadcastCustomMessage(QString realm, obs_data_t* data) {
|
||||
OBSDataAutoRelease broadcastData = obs_data_create();
|
||||
obs_data_set_string(broadcastData, "realm", realm.toUtf8().constData());
|
||||
obs_data_set_obj(broadcastData, "data", data);
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
const char* GetRecordingTimecode();
|
||||
obs_data_t* GetStats();
|
||||
|
||||
void OnBroadcastCustomMessage(QString realm, OBSDataAutoRelease data);
|
||||
void OnBroadcastCustomMessage(QString realm, obs_data_t* data);
|
||||
|
||||
bool HeartbeatIsActive;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user