Skip to content

Commit

Permalink
obs update
Browse files Browse the repository at this point in the history
  • Loading branch information
summeroff committed Jun 23, 2023
1 parent 8028741 commit a5f79b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 334 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:
SLGenerator: Visual Studio 17 2022
SLDistributeDirectory: distribute
SLFullDistributePath: "streamlabs-build.app/distribute" # The .app extension is required to run macOS tests correctly.
LibOBSVersion: 28.2.59size5
LibOBSVersion: 28.2.59size6
PACKAGE_NAME: osn

jobs:
Expand Down
331 changes: 0 additions & 331 deletions azure-pipelines.yml

This file was deleted.

8 changes: 6 additions & 2 deletions obs-studio-server/source/osn-sceneitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,12 @@ void osn::SceneItem::GetSize(void *data, const int64_t id, const std::vector<ipc
PRETTY_ERROR_RETURN(ErrorCode::InvalidReference, "Item reference is not valid.");
}

vec2 size;
obs_sceneitem_get_size(item, &size);
vec2 size = {0};
obs_source_t *input = obs_sceneitem_get_source(item);
if (input) {
size.x = obs_source_get_width(input);
size.y = obs_source_get_height(input);
}

rval.push_back(ipc::value((uint64_t)ErrorCode::Ok));
rval.push_back(ipc::value(size.x));
Expand Down

0 comments on commit a5f79b9

Please sign in to comment.