10623 Commits

Author SHA1 Message Date
Matt Gajownik
364f102561 obs-browser: Fix Windows crash if shared texture is unavailable 2022-01-29 18:05:25 +11:00
Paul Hindt
29b835b20f aja: Disable Analog In/Out selections in the UI
Analog capture/display for supported cards will be added in the future.
2022-01-28 23:58:53 -06:00
Richard Stanway
4cc419e3c9 libobs: Free module if obs_module_load callback returns false
Currently if a module fails its load callback, it remains loaded and OBS
continues to call additional exports such as obs_module_post_load. This
goes against the documented behavior, which states that a module that
fails its load callback is unloaded.

This commit releases locale resources and frees the module's
information, preventing further callbacks from libobs. The module itself
(the DLL) is not yet unloaded from memory as os_dlclose is commented out
for causing unspecified issues - this should be revisited in the future.
2022-01-28 19:14:00 -08:00
Matt Gajownik
eb7d6e84aa UI: Add separators to system tray context menu 2022-01-29 14:01:34 +11:00
gxalpha
9c51b70dd0 UI: Fix unused variable warning on non-windows 2022-01-29 13:30:17 +11:00
Paul Hindt
ba875377d0 aja: Fix Kona1 simultaneous capture/output 2022-01-28 20:23:40 -06:00
Paul Hindt
3fbd5d9179 aja: Adjust whitespace for consistency 2022-01-28 20:23:40 -06:00
Paul Hindt
8d051c6a1c aja: Use SDI Transport selection to engage Auto detection
Otherwise use Video and Pixel format selections to engage Auto detection for HDMI
2022-01-28 20:23:40 -06:00
Paul Hindt
0ef3b29cad aja: Show/Hide SDI Transport/4K lists and options
Only show SDI Transport options if IOSelection is SDI and

only show 12G selection in Capture plugin
2022-01-28 20:23:40 -06:00
Paul Hindt
f559287723 aja: Fix 2xSDI UHD/4K YCbCr 2SI VPID lookup 2022-01-28 20:23:40 -06:00
Paul Hindt
0d15bb0b94 aja: Hide duplicate HDMI IN entry for Kona HDMI 2022-01-28 20:23:40 -06:00
Paul Hindt
a4c0996d59 aja: Filter 6G/12G SDI Transport depending device/plugin type 2022-01-28 20:23:40 -06:00
Paul Hindt
d2515170e1 aja: Disable UHD/4K high-framerate for Output
A fix for UHD/4K HFR modes will be added in a future plugin release.
2022-01-28 20:23:40 -06:00
Paul Hindt
5f81d4117f aja: Clear previous crosspoints when signal changes
Fix for a bug where stale crosspoint connections could result in

video glitches upon next connection.
2022-01-28 20:23:40 -06:00
Paul Hindt
d18b805aee aja: Remove unfinished 2x4K Squares support
Support for 2x4K Square Division will be added in a future update
2022-01-28 20:23:40 -06:00
Paul Hindt
eafe588bd3 aja: Re-work HDMI routing and add missing presets 2022-01-28 20:23:40 -06:00
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