mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Fixed missed changes from currentScene -> scene
This commit is contained in:
parent
53ba747b78
commit
d277e2788a
@ -276,7 +276,7 @@ void WSRequestHandler::HandleSetSourceRender(WSRequestHandler *owner)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
obs_sceneitem_t *sceneItem = Utils::GetSceneItemFromName(currentScene, itemName);
|
obs_sceneitem_t *sceneItem = Utils::GetSceneItemFromName(scene, itemName);
|
||||||
if (sceneItem != NULL)
|
if (sceneItem != NULL)
|
||||||
{
|
{
|
||||||
obs_sceneitem_set_visible(sceneItem, isVisible);
|
obs_sceneitem_set_visible(sceneItem, isVisible);
|
||||||
@ -288,7 +288,7 @@ void WSRequestHandler::HandleSetSourceRender(WSRequestHandler *owner)
|
|||||||
owner->SendErrorResponse("specified scene item doesn't exist");
|
owner->SendErrorResponse("specified scene item doesn't exist");
|
||||||
}
|
}
|
||||||
|
|
||||||
obs_source_release(currentScene);
|
obs_source_release(scene);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WSRequestHandler::HandleGetStreamingStatus(WSRequestHandler *owner)
|
void WSRequestHandler::HandleGetStreamingStatus(WSRequestHandler *owner)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user