mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
eventhandler, utils: Implement missing output states
This commit is contained in:
parent
23f883d906
commit
323b5d0b5d
@ -24,10 +24,12 @@ static bool GetOutputStateActive(ObsOutputState state)
|
||||
switch (state) {
|
||||
case OBS_WEBSOCKET_OUTPUT_STARTED:
|
||||
case OBS_WEBSOCKET_OUTPUT_RESUMED:
|
||||
case OBS_WEBSOCKET_OUTPUT_RECONNECTED:
|
||||
return true;
|
||||
case OBS_WEBSOCKET_OUTPUT_STARTING:
|
||||
case OBS_WEBSOCKET_OUTPUT_STOPPING:
|
||||
case OBS_WEBSOCKET_OUTPUT_STOPPED:
|
||||
case OBS_WEBSOCKET_OUTPUT_RECONNECTING:
|
||||
case OBS_WEBSOCKET_OUTPUT_PAUSED:
|
||||
return false;
|
||||
default:
|
||||
|
@ -73,6 +73,7 @@ enum ObsOutputState {
|
||||
OBS_WEBSOCKET_OUTPUT_STOPPING,
|
||||
OBS_WEBSOCKET_OUTPUT_STOPPED,
|
||||
OBS_WEBSOCKET_OUTPUT_RECONNECTING,
|
||||
OBS_WEBSOCKET_OUTPUT_RECONNECTED,
|
||||
OBS_WEBSOCKET_OUTPUT_PAUSED,
|
||||
OBS_WEBSOCKET_OUTPUT_RESUMED,
|
||||
};
|
||||
@ -83,6 +84,8 @@ NLOHMANN_JSON_SERIALIZE_ENUM(ObsOutputState, {
|
||||
{OBS_WEBSOCKET_OUTPUT_STARTED, "OBS_WEBSOCKET_OUTPUT_STARTED"},
|
||||
{OBS_WEBSOCKET_OUTPUT_STOPPING, "OBS_WEBSOCKET_OUTPUT_STOPPING"},
|
||||
{OBS_WEBSOCKET_OUTPUT_STOPPED, "OBS_WEBSOCKET_OUTPUT_STOPPED"},
|
||||
{OBS_WEBSOCKET_OUTPUT_RECONNECTING, "OBS_WEBSOCKET_OUTPUT_RECONNECTING"},
|
||||
{OBS_WEBSOCKET_OUTPUT_RECONNECTED, "OBS_WEBSOCKET_OUTPUT_RECONNECTED"},
|
||||
{OBS_WEBSOCKET_OUTPUT_PAUSED, "OBS_WEBSOCKET_OUTPUT_PAUSED"},
|
||||
{OBS_WEBSOCKET_OUTPUT_RESUMED, "OBS_WEBSOCKET_OUTPUT_RESUMED"},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user