Skip to content

Commit

Permalink
Fix dualoutput (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
summeroff authored Aug 23, 2023
1 parent da18fdb commit 6ad035d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 340 deletions.
4 changes: 2 additions & 2 deletions .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.66
LibOBSVersion: 28.2.67
PACKAGE_NAME: osn

jobs:
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
shell: powershell
- name: Install specific version of AWS CLI
run: |
$version = "2.12.1"
$version = "2.12.5"
$zipfile = "AWSCLIV2.zip"
Invoke-WebRequest -OutFile $zipfile "https://awscli.amazonaws.com/AWSCLIV2-$version.msi"
Start-Process msiexec.exe -Wait -ArgumentList "/i $zipfile /qn"
Expand Down
331 changes: 0 additions & 331 deletions azure-pipelines.yml

This file was deleted.

15 changes: 8 additions & 7 deletions obs-studio-server/source/nodeobs_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ HMODULE hRtwq;
std::string slobs_plugin;
std::vector<std::pair<std::string, obs_module_t *>> obsModules;
OBS_API::LogReport logReport;
OBS_API::OutputStats streamingOutputStats;
OBS_API::OutputStats streamingOutputStatsMain;
OBS_API::OutputStats streamingOutputStatsSecondary;
OBS_API::OutputStats recordingOutputStats;
std::mutex logMutex;
std::string currentVersion;
Expand Down Expand Up @@ -996,9 +997,9 @@ void OBS_API::OBS_API_getPerformanceStatistics(void *data, const int64_t id, con
rval.push_back(ipc::value(getNumberOfDroppedFrames()));
rval.push_back(ipc::value(getDroppedFramesPercentage()));

getCurrentOutputStats(OBS_service::getStreamingOutput(StreamServiceId::Main), streamingOutputStats);
rval.push_back(ipc::value(streamingOutputStats.kbitsPerSec));
rval.push_back(ipc::value(streamingOutputStats.dataOutput));
getCurrentOutputStats(OBS_service::getStreamingOutput(StreamServiceId::Main), streamingOutputStatsMain);
rval.push_back(ipc::value(streamingOutputStatsMain.kbitsPerSec));
rval.push_back(ipc::value(streamingOutputStatsMain.dataOutput));

getCurrentOutputStats(OBS_service::getRecordingOutput(), recordingOutputStats);
rval.push_back(ipc::value(recordingOutputStats.kbitsPerSec));
Expand All @@ -1009,9 +1010,9 @@ void OBS_API::OBS_API_getPerformanceStatistics(void *data, const int64_t id, con
rval.push_back(ipc::value(getMemoryUsage()));
rval.push_back(ipc::value(getDiskSpaceAvailable()));

getCurrentOutputStats(OBS_service::getStreamingOutput(StreamServiceId::Second), streamingOutputStats);
rval.push_back(ipc::value(streamingOutputStats.kbitsPerSec));
rval.push_back(ipc::value(streamingOutputStats.dataOutput));
getCurrentOutputStats(OBS_service::getStreamingOutput(StreamServiceId::Second), streamingOutputStatsSecondary);
rval.push_back(ipc::value(streamingOutputStatsSecondary.kbitsPerSec));
rval.push_back(ipc::value(streamingOutputStatsSecondary.dataOutput));
AUTO_DEBUG;
}

Expand Down
3 changes: 3 additions & 0 deletions obs-studio-server/source/nodeobs_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,9 @@ void OBS::Display::DisplayCallback(void *displayPtr, uint32_t cx, uint32_t cy)
gs_technique_t *solid_tech = gs_effect_get_technique(solid, "Solid");
vec4 color;

if (dp->m_canvas)
obs_set_video_rendering_canvas(dp->m_canvas);

dp->UpdatePreviewArea();

// Get proper source/base size.
Expand Down
Loading

0 comments on commit 6ad035d

Please sign in to comment.