noobs 0.0.157 → 0.0.158
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/noobs.node +0 -0
- package/package.json +1 -1
- package/src/obs_interface.cpp +8 -2
package/dist/noobs.node
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/obs_interface.cpp
CHANGED
|
@@ -119,7 +119,6 @@ void ObsInterface::setVideoContext(int fps, int width, int height) {
|
|
|
119
119
|
create_video_encoders();
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
|
|
123
122
|
int ObsInterface::reset_video(int fps, int width, int height) {
|
|
124
123
|
blog(LOG_INFO, "Reset video");
|
|
125
124
|
obs_video_info ovi = {};
|
|
@@ -139,7 +138,14 @@ int ObsInterface::reset_video(int fps, int width, int height) {
|
|
|
139
138
|
ovi.gpu_conversion = true;
|
|
140
139
|
ovi.graphics_module = "libobs-d3d11.dll";
|
|
141
140
|
|
|
142
|
-
|
|
141
|
+
int rc = obs_reset_video(&ovi);
|
|
142
|
+
|
|
143
|
+
if (rc == OBS_VIDEO_SUCCESS) {
|
|
144
|
+
// Without this HDR doesn't work.
|
|
145
|
+
obs_set_video_levels(300.0f, 1000.0f);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return rc;
|
|
143
149
|
}
|
|
144
150
|
|
|
145
151
|
bool ObsInterface::reset_audio() {
|