Fixed missed changes from currentScene -> scene

This commit is contained in:
Mikhail Swift 2017-02-26 16:40:29 -05:00
parent 53ba747b78
commit d277e2788a

View File

@ -276,7 +276,7 @@ void WSRequestHandler::HandleSetSourceRender(WSRequestHandler *owner)
return;
}
obs_sceneitem_t *sceneItem = Utils::GetSceneItemFromName(currentScene, itemName);
obs_sceneitem_t *sceneItem = Utils::GetSceneItemFromName(scene, itemName);
if (sceneItem != NULL)
{
obs_sceneitem_set_visible(sceneItem, isVisible);
@ -288,7 +288,7 @@ void WSRequestHandler::HandleSetSourceRender(WSRequestHandler *owner)
owner->SendErrorResponse("specified scene item doesn't exist");
}
obs_source_release(currentScene);
obs_source_release(scene);
}
void WSRequestHandler::HandleGetStreamingStatus(WSRequestHandler *owner)