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

10407 Commits

Author SHA1 Message Date
Paul Hindt
4650cf4574 aja: Fix HDMI RGB crosspoint indices 2022-01-28 20:23:40 -06:00
Paul Hindt
71e3fcc5de aja: Add framestore index helpers to Source/OutputProps 2022-01-28 20:23:40 -06:00
Ryan Foster
5bbb36acf8 mac-vth264: Set RealTime property to False
While the Apple documentation currently seems to indicate that we should
set RealTime to True, it appears that this may be causing issues with
the encoder not being able to meet the target frame rate. Both FFmpeg
and Handbrake have recently explicitly set this value to False, and
preliminary tests seem to indicate that setting this to false in OBS has
favorable results.
2022-01-28 11:35:50 -08:00
Ryan Foster
6360b2e425 mac-vth264: Use float for expected frame rate
The encoder property kVTCompressionPropertyKey_ExpectedFrameRate is a
hint to the video encoder. Since frame rates can be fractional, let's
use a float here instead of an int.
2022-01-28 11:35:50 -08:00
Ryan Foster
63eb2d1c31 mac-vth264: Remove OSX 10.8 compatibility code
OBS no longer supports building on OSX. The minimum version of macOS
that we support is macOS 10.13. We can safely remove this 10.8
compatibility code.
2022-01-28 11:35:50 -08:00
jp9000
c87a81ba56 UI: Show wait cursor while cleaning up scene data 2022-01-28 10:30:42 -08:00
tytan652
447b8786ef flatpak: Update librist library
The librist commit is what is used by obs-deps since
this commit https://github.com/obsproject/obs-deps/commit/06fdd5f.
2022-01-27 12:02:53 -03:00
Richard Stanway
5ed45d06da
UI: Check current affinity before calling SetWindowDisplayAffinity
For some reason, SetWindowDisplayAffinity can make windows visible even
when it sets the same value for affinity that GetWindowDisplayAffinity
reports. Possibly an API bug as this is probably not a widely used API
yet?

Fixes a weird window with no size appearing when browsing for files on
Windows.
2022-01-27 02:47:11 +01:00
tytan652
54ca895537 flatpak: Update libaom and SVT-AV1
Update the libaom and SVT-AV1 versions and also apply several
cherry-picked commits to FFmpeg for SVT-AV1.

The libaom commit is what will be used by obs-deps once
https://github.com/obsproject/obs-deps/pull/90 is merged.
2022-01-26 13:42:29 -03:00
jp9000
c2b1f93a7b obs-vst: Fix VSTs losing their settings when upgrading 2022-01-26 08:12:04 -08:00
Luke Yelavich
9ce385d926 flatpak: Enable communication with org.a11y.Bus
This allows Linux accessibility tools such as the Orca screen reader to
be used with OBS.
2022-01-26 12:27:05 -03:00
Matt Gajownik
67dbb316a5 libobs: Respect push to talk/mute status in volmeter
The audio capture callback's mute parameter internally respects the
push to talk/mute state, whereas obs_source_muted() and the "mute"
signal don't. This resulted in meters looking entirely unmuted even
though both monitoring and output were not receiving audio.
2022-01-26 16:37:36 +11:00
derrod
8367c8adfa obs-ffmpeg: Add MX450 to blacklist 2022-01-25 16:46:55 +01:00
jp9000
c1905f4e53 docs/sphinx: Fix documentation for addref/release functions
Incorrectly implied that both addref and release calls were deprecated;
only addref calls are deprecated.
2022-01-25 06:22:13 -08:00
Clayton Groeneveld
0377b962b5 UI: Disconnect group reorder signal
The group reorder signal was never disconnected when
resetting signals.
2022-01-25 06:06:15 -08:00
Richard Stanway
40a598008d UI: Fix QLabel leak in OBSPropertiesView::AddProperty
OBS_PROPERTY_GROUP creates neither a widget nor a label, causing
AddProperty to create a default one. Without a widget, it does not
get attached to the layout, resulting in a memory leak.

This commit also simplifies a bit of the code to avoid repeatedly
testing the same condition.
2022-01-25 06:01:23 -08:00
gxalpha
799ac3f6a0 UI: Fix transform options being wrongly enabled/disabled
They detection for this was not checking the n selected items but the
first n items in the list, which would lead to the options being enabled
or disabled based on the whether other items were locked.
2022-01-25 05:58:47 -08:00
Jim
b3b4e1b2ef
Merge pull request #5860 from obsproject/deprecate-addref
Deprecate addref for obs objects
2022-01-25 05:55:52 -08:00
Jim
03d9bda387 libobs: Deprecate obs object addref functions
Deprecates:
obs_source_addref()
obs_output_addref()
obs_encoder_addref()
obs_service_addref()
obs_scene_addref()

These functions should be considered unsafe and not used. Instead, use:
obs_source_get_ref()
obs_output_get_ref()
obs_encoder_get_ref()
obs_service_get_ref()
obs_scene_get_ref()

These functions return a pointer to the incremented object only if the
object is still valid, otherwise they will return null, indicating that
the object is no longer valid or is unsafe to use.

The reason why this is being done is because certain third party plugins
seem to be using addref, and are somehow managing to call addref on
sources that have already been fully released. For the sake of safety,
almost all usage of these functions within OBS have also been replaced
as well.
2022-01-25 05:20:03 -08:00
Colin Edwards
99fe09e706 aja: Remove inter-plugin debug logging 2022-01-24 22:00:02 -06:00
Georges Basile Stavracas Neto
0f36d7832c
UI: Fix bugtracker URL in AppData file (#5861)
It is mistakenly set to github.org, instead of github.com.

Sorry :(
2022-01-24 19:02:55 -06:00
Jim
0523c2e5e9 libobs: Replace addref calls with get_ref 2022-01-24 14:06:50 -08:00
Jim
77a35e93ea libobs: Use get_ref calls for obs.hpp helper classes 2022-01-24 14:06:50 -08:00
Jim
b9e01380f3 UI: Replace addref calls with get_ref 2022-01-24 14:06:50 -08:00
Jim
404ebdbd51 mac-syphon: Replace source addref calls with get_ref 2022-01-24 14:06:50 -08:00
Jim
ad6cb5a8be image-source: Replace source addref calls with get_ref 2022-01-24 14:06:50 -08:00
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