0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00
Commit Graph

10381 Commits

Author SHA1 Message Date
Jim
f29e5ffbc7 libobs: Add obs_scene_get_ref() 2022-01-24 14:06:47 -08:00
Matt Gajownik
b77ccceae7 UI: Allow 'Hide OBS window' on Windows 10 2004
Per the Microsoft documentation, 2004 (19041) is the minimum supported
version for this feature. Ensure the check matches that.
2022-01-24 21:44:47 +11:00
Matt Gajownik
f9b038513a UI: Fix Settings save crash on old Windows versions
WidgetChanged doesn't contain a null check, resulting in a crash when
looking at the value for the new Hide OBS From Capture setting.

Fixes #5854
2022-01-24 18:31:05 +11:00
jp9000
0dd5d93d42 obs-ffmpeg: Add new SVT presets
Don't worry, these preset names are just placeholders for now
2022-01-23 14:57:27 -08:00
jp9000
2416dfbd5e libobs: Prevent and log double destroy on sources
This prevents double destroys from happening on sources and causing
crashes. If someone's doing a double destroy it'll probably crash anyway
but at least we'll know what happened if it does. (Jim note: I suspect
third party plugins are calling addref on sources when they shouldn't
be. Either that or we're missing something ourselves, but I suppose
we'll see.)
2022-01-23 11:56:28 -08:00
jp9000
b9599fed2d obs-browser: Suppress certain warnings 2022-01-23 08:52:15 -08:00
Matt Gajownik
5c07cc12b2 obs-vst: Fix formatting, fix size truncation warning
31c2fc6 - Fix size truncation warning for silenceChannel
7e53139 - Fix formatting
2022-01-23 21:27:59 +11:00
jpark37
63a6534966 win-capture: Fix parameter mismatches
Fix missing HWND argument type, and use DWORD based on MS sample.
2022-01-23 20:39:54 +11:00
Matt Gajownik
4e04011101 UI: Don't read unloaded module in source toolbar
Avoid potential crashes similar to #4391 for existing users,
especially on non-Windows.
2022-01-23 16:45:54 +11:00
Exeldro
b2360b4332 libobs: Don't destroy mutex before destroying sources is done 2022-01-22 15:32:42 -08:00
Christine Lin
2474775f40 obs-qsv11: Fix memory leak in QSV plugin module 2022-01-22 15:30:36 -08:00
Richard Stanway
076cd5d5d4 UI: Add option to hide OBS windows on Windows
This uses the SetWindowDisplayAffinity API to hide windows from capture
applications (including OBS). This is not perfect - internal windows
such as context menus, combo box dropdowns, etc will still be displayed.
Even with these limitations, it should help people with single monitors
capture content with less interference from the OBS window.

This implementation is for Windows only but the code is generic enough
that adding other platforms should be straightforward.
2022-01-22 15:14:16 -08:00
Matt Gajownik
e9cbe52d96 CI: Bump CEF caches to fix cookie crash bug
Manually backported a CEF 97 bug fix to CEF 95 and rebuilt for all
platforms. More info:
https://bitbucket.org/chromiumembedded/cef/issues/3193/#comment-61679139
2022-01-22 21:20:07 +11:00
Matt Gajownik
7c84fb49bc obs-vst: Fix closing & resizing VSTs on macOS
* 2b2f15f - Don't disable VST close button on macOS
* 95d81a3 - Fix resizing most VSTs on macOS
2022-01-22 19:07:16 +11:00
Matt Gajownik
00232e6b98 obs-vst: Fix mvMeter2 resize crash, fix SPAN resizing 2022-01-22 13:14:02 +11:00
Paul Hindt
57d1619c8d aja: Fix UHD/4K YCbCr 3G Level-B 2SI preset 2022-01-21 11:58:29 -06:00
gxalpha
d601577706 UI: Fix small typo 2022-01-21 10:07:25 -05:00
Matt Gajownik
838986006b obs-browser: Update version to 2.17.8
* 9dbaed4 - Revert "Fix debug builds for CEF >= 4430 on Windows"

This fixes a crash when loading browser docks in Debug mode.
2022-01-21 20:21:18 +11:00
Richard Stanway
3ce12bc5e9
UI: Optimize undo/redo functions with constant references 2022-01-19 21:39:43 +01:00
Paul Hindt
a59f6c4e50 aja: Fix crash when capture thread is reset 2022-01-19 11:18:26 -06:00
Paul Hindt
04bf12f130 aja: Workaround for SDI5 output not working on io4K+ 2022-01-18 20:50:37 -06:00
Matt Gajownik
a59286f6b5 obs-browser: Fix compilation on non-Windows 2022-01-19 13:20:27 +11:00
Matt Gajownik
35ca19bf68 obs-browser: Update version to 2.17.7
* 7ef33d5 - Allow resizing without recreate
 * 16be8b6 - Fix showing stale frames on show
 * 03942a8 - Fix sources not rendering after hide/show
2022-01-19 11:47:53 +11:00
Richard Stanway
82b5a39ea4 libobs: Mark raw_active and gpu_encoder_active as volatile
These were operated on by atomic functions but were not marked as
volatile or loaded with os_atomic_load_long, potentially introducing
subtle race conditions. Detected by ThreadSanitizer.
2022-01-18 03:49:20 -08:00
Matt Gajownik
fa35fd0f55 win-capture: Don't list minimized UWP apps 2022-01-18 03:42:27 -08:00
Richard Stanway
85ac469458 UI: Use regexp to filter filename formatting
Avoids unbounded stack growth when pasting content that has many invalid
characters. Fixes https://github.com/obsproject/obs-studio/issues/5815.
2022-01-18 03:34:58 -08:00
AuroraWright
e58421342c mac-vth264: Fix DTS timestamps when blank 2022-01-18 03:02:15 -08:00
Richard Stanway
d458780f02
win-capture: Use stack buffer for small window titles
Avoids expensive malloc calls that might also contribute to excessive
heap fragmentation.
2022-01-18 01:58:45 +01:00
Richard Stanway
ecf8c1239d
win-capture: Make open_process_proc static
Seems like the original intention and avoids repeatedly calling
GetProcAddress. Detected by PVS Studio.
2022-01-18 00:00:10 +01:00
Richard Stanway
1af1a432e2 text-freetype2: Fix incorrect fread argument order
This fixes UTF-16 BOM files being loaded incorrectly and having their
newlines parsed incorrectly in read from end mode. Detected by PVS
Studio.
2022-01-17 23:40:48 +01:00
Matt Gajownik
a3e3ee8a8b UI: Downgrade scalable logo on Linux to SVG 1.0
GNOME (and a number of SVG editors) don't handle SVG 1.1 properly,
resulting in the inner circle overflowing into the outer circle.
2022-01-17 19:09:54 +11:00
Nicolas Fella
f43b046f8b UI: Set desktopFileName for QApplication
This needs to match the base name of the .desktop file name.

This is needed for propagating the correct App ID on Wayland,
which is needed e.g. for proper window icons on Plasma.
2022-01-16 18:03:27 +11:00
Ryan Foster
0a93acbc86 UI: Fix memory leak in Auto-Configuration Wizard
If streaming and recording was selected in the Auto-Configuration
Wizard, a memory leak would occur. When obs_service_resolution appeared
elsewhere in C++ files, it used a BPtr. Use BPtr here too.
2022-01-15 22:24:00 -05:00
Richard Stanway
a3c97dfad2 libobs-opengl: Miscellaneous static analysis fixes
Detected by PVS Studio.
2022-01-15 23:02:38 +00:00
Paul Hindt
9728345bf4 aja: Fix signal routing for 4xSDI UHD/4K RGB 3Gb
Crosspoint indices were wrong for the UHD4K_ST425_Quad_3Gb_Squares_RGB_Capture preset and VPID was not being set for the selected 3G-Level B transport mode.
2022-01-15 15:30:58 -06:00
Paul Hindt
9c9efcd04d aja: Fix erroneous HDMI input selection for certain cards 2022-01-15 15:29:39 -06:00
Paul Hindt
3e07c29ec3 aja: Rename IOSelection strings for HDMI and Analog 2022-01-15 15:29:39 -06:00
Paul Hindt
87ce26cfca aja: Fix Kona1 not auto-detecting capture pixel format 2022-01-15 15:28:16 -06:00
pkv
50aec9c2a0 media-playback: Fix rist demuxing
We currently pass a 'buffer_size' option to avformat in bytes.
Unfortunately, avformat/librist.c admits an option with the same name but in milliseconds.
The default values set in the UI (2 MB) go beyond the range admitted in ms (0-30 000)
so avformat issues errors.
This fix disables the option when rist protocol is detected.

Signed-off-by: pkv <pkv@obsproject.com>
2022-01-14 20:50:14 -08:00
Ryan Foster
a7d3df3763 linux-v4l2: Fix timeout logging
The timeout_usec variable is uint64_t, but the log format was set to %ld
(signed long int), so it would sometimes log a nonsensical value. Let's
use $PRIu64 instead, which should be equivalent to %llu (unsigned long
long int).

Fixes #5797.
2022-01-14 20:43:25 -08:00
Richard Stanway
3240b05cec libobs-d3d11: Fix formatting 2022-01-15 00:38:02 +01:00
Richard Stanway
dccf569982 libobs: Specify format string for bcrash
Detected by PVS Studio.
2022-01-15 00:31:31 +01:00
Richard Stanway
42fc705333 obs-filters: Fix incorrect format string
Detected by PVS Studio.
2022-01-15 00:17:02 +01:00
Richard Stanway
74b5bed116 libobs-d3d11: Fix incorrect format string
Detected by PVS Studio.
2022-01-15 00:16:39 +01:00
tytan652
30b8987bad libobs: Fix type mismatch on obs_property_text_monospace 2022-01-14 21:02:29 +11:00
derrod
eb62162d50 UI: Log YouTube API HTTP request errors 2022-01-13 23:07:45 +01:00
Paul Hindt
cb51c974f4 aja: Fix Kona5/io4K+ 6G/12G-SDI routing and RGB HD-DualLink routing 2022-01-13 13:12:47 -06:00
Paul Hindt
8f8b522ca7 aja: Fix for invalid default settings and empty cardID string 2022-01-13 13:11:51 -06:00
Matt Gajownik
cdb5b6e812 obs-vst: Fix crashes due to unhandled events, fix stutter when loading
* 106868e - Improve lock for effect object
* 566c213 - Handle more VST events to avoid crashes
2022-01-13 19:09:29 +11:00
Vainock
9af944cb8b UI: Remove unused 'Percent' string 2022-01-12 07:33:04 -08:00