11535 Commits

Author SHA1 Message Date
tududweb
a772e74286 UI: Correctly draw sub-item SpacingHelper on group 2022-08-18 02:35:34 -07:00
tududweb
122b83f4c1 UI: Don't show sub-item SpacingHelper on locked group 2022-08-18 02:35:34 -07:00
tytan652
f41404528a UI: Save virtual camera outside of the modules object
Save the configuration outside of the modules object meant for plugins
in the scene collection.
2022-08-18 02:35:13 -07:00
cg2121
ccfe300f72 UI: Reintroduce faster theme switching
Based on (was reverted):
08cee21158

This simplifies the faster switching code, as setting an empty
stylesheet resets it to default.
2022-08-18 02:34:47 -07:00
cg2121
5412b000ab UI: Remove unused stylesheet code
This code is from before custom stylesheets were introduced.
2022-08-17 23:22:05 -07:00
Chip Bradford
590fa1ffe6 UI: Free virtual cam memory on shutdown 2022-08-17 23:21:28 -07:00
jpark37
57a24c540f obs-x264: Remove unused HDR code
We don't allow HDR for x264, so remove dead code.
2022-08-17 23:20:29 -07:00
jpark37
2d0e312b30 libobs-d3d11: Unbind framebuffer before Present
D3D debug layer would INFO spam about RTV0 unbind for FLIP chains.
2022-08-17 23:20:13 -07:00
gxalpha
0a94b3ce16 UI: Only set QStyle on app start
Setting a QStyle resets the color palette. This is unhelpful when a few
lines before that we set a new palette. In theory the setStyle call
could just be moved up, but we don't need to since we always set the
same style so there's no reason to call it multiple times.
2022-08-18 14:22:55 +10:00
gxalpha
b4a2eacba7 UI: Don't set theme if it didn't change
If the user just reselects the theme they're already on, we shouldn't
set it again, as setting a theme always introduces issues (that are
especially visible on macOS and Linux).
2022-08-17 13:45:40 -07:00
Ed Maste
8b370c4218 linux-v4l2: Correct udev fd poll event test
Parentheses are needed due to operator precedence (although the previous
code happened to work because POLLIN has the value 1).

Fixes:		91f986ec9969 ("linux-v4l2: Check udev fd events")
2022-08-17 12:32:47 -03:00
gxalpha
07c54e1b18 UI: Use user application support as base_module_dir 2022-08-17 17:03:48 +02:00
gxalpha
b543f96a3b UI: Only load legacy macOS .so plugins on x86_64
Plugins are expected to be in the .plugin bundle format. We do not want
to encourage usage of the old .so format, this is only kept at all for
backwards compatibility with existing plugins.
2022-08-17 17:03:48 +02:00
gxalpha
4998fddf6b UI: Don't load macOS plugin bundles from global library
Plugins are supposed to go into the user application support directory,
so we shouldn't load them from the system one.
2022-08-17 17:03:48 +02:00
cg2121
be98abc088 UI: Fix crash when hiding audio mixer item
This crash is suspected to be a QT bug that happens in 6.2.4, as
it only happens in this version. This is the QT version that is in
the Ubuntu 22.04 ppa, so this fix is a necessary evil as it affects
Ubuntu users.

This fixes the crash by deferring the hiding of the audio mixer
item to the next event loop.
2022-08-17 05:43:02 -07:00
derrod
1fdaf121e6 obs-qsv11: Do not apply limits if CPU generation is unknown
Users with AMD CPUs and Intel dGPUs (Arc) would find that QSV is
restricted to 1200p and missing features due to to this check failing.

Once the encoder gets rewritten for AV1 support we will fix this
properly.
2022-08-17 05:42:08 -07:00
Chris
0cc7ed4382 obs-ffmpeg: Add b-frame logging for AMD encoder
Add b-frame value to log for the AMD ENcoder When checking for b-frame
support, also set bf=0 so the log will reflect reality.
2022-08-17 05:38:54 -07:00
Richard Stanway
abedc7d08b UI: Fix use-after-free in properties view 2022-08-17 05:30:57 -07:00
jpark37
6494d46111 libobs: Use nal_ref_idc for H.264 priority
H.264 spec only mentions zero/non-zero, but RFC 6184 uses 0/1/2/3 values
for prioritization. Go back to reading packet field for priority.
2022-08-17 05:30:16 -07:00
Matt Gajownik
591ba518dc plugins: Update translations from Crowdin 2022-08-17 14:27:34 +10:00
Translation Updater
4aaa07f93d Update translations from Crowdin 2022-08-17 04:22:50 +00:00
jpark37
7e6a2ccdec obs-ffmpeg: Prevent invalid NVENC combinations
Don't want to silently generate lossy video.
2022-08-16 21:14:36 -07:00
Ed Maste
91f986ec99 linux-v4l2: Check udev fd events
udev_event_thread calls poll with two fds: the udev fd, and an eventfd
used for shutdown.  On FreeBSD we were hanging on shutdown in
udev_monitor_receive_device after receiving the eventfd event.

Now, if the udev fd reports no events skip the
udev_monitor_receive_device call.

At shutdown the loop will exit via os_event_try().
2022-08-16 20:46:06 -07:00
Georges Basile Stavracas Neto
87b5f17b2f UI: Update windowaudio.svg
Update it to match the style of the rest of the icon theme.
2022-08-16 22:32:24 -03:00
Georges Basile Stavracas Neto
3ad4e5a251 UI: Update icons for interact and refresh 2022-08-16 22:32:24 -03:00
Ed Maste
25d308c727 libobs: Read /etc/os-release on FreeBSD
Previously FreeBSD had an optional port that installed /etc/os-release
so it was already available on many FreeBSD systems, but os-release is
now provided by the base system and will be universally available.
2022-08-16 18:40:48 -04:00
Ro
85f2888048
rtmp-services: Update Switchboard Live service (#7104)
Updated servers and recommend settings.
2022-08-16 23:12:07 +02:00
Ed Maste
ef6828d31b CI: Build ALSA support on FreeBSD
FreeBSD provides an ALSA compatibility library.  Install it, and leave
ALSA support enabled as default.
2022-08-16 14:48:54 -04:00
Ed Maste
c3097f4ee9 aja: Correct typos in README.md 2022-08-16 14:08:21 -04:00
jpark37
4ffedf877a obs-ffmpeg: Block 8-bit HDR for AV1 encoders
Don't want to silently generate lossy video.
2022-08-16 07:39:52 -07:00
jpark37
175093b26b obs-x264: Block 10-bit formats
Don't want to silently generate 8-bit video.
2022-08-16 07:39:23 -07:00
jpark37
8ca35e4e10 obs-filters: Don't allow HDR max below 5 nits
That's the lower limit of max_display_mastering_luminance in the spec.
2022-08-16 07:39:04 -07:00
jpark37
62165b42d7 obs-qsv11: Replace CRITICAL_SECTION with SRWLOCK
Fixes initialize/destroy pattern; also slightly more performant.
2022-08-16 07:38:43 -07:00
jpark37
7406f04851 obs-qsv11: Prevent 8-bit HDR, and 10-bit anything
Don't want to silently generate lossy video.
2022-08-16 07:38:07 -07:00
jpark37
eec66e10e3 obs-ffmpeg: Prevent invalid AMF combinations
Don't want to silently generate lossy video.
2022-08-16 07:37:36 -07:00
jpark37
690ba952de obs-ffmpeg: Fix leaks in AMF with unique_ptr 2022-08-16 07:37:36 -07:00
pkv
3191c73e16 UI: Fix theme leak
This fixes leaks when loading and switching themes.

Signed-off-by: pkv <pkv@obsproject.com>
2022-08-16 07:36:18 -07:00
Ed Maste
405ee4255b CI: Remove UNIX_STRUCTURE from FreeBSD Cirrus-CI config
UNIX_STRUCTURE was deprecated in df94b0207563.
2022-08-16 15:22:46 +02:00
tytan652
fe889ec28e UI: Fix settings properties view background on Yami variants 2022-08-15 19:07:19 -03:00
tytan652
0f63967ee0 UI: Fix grid mode spacing with Yami variants 2022-08-15 19:07:19 -03:00
tytan652
29d40bb7fb UI/themes: Disable QDialog button icons on Yami new variants 2022-08-15 19:07:19 -03:00
cg2121
92624565a6 UI: Fix Yami list widget hover color
With Yami, when hovering a list widget (ie. scenes/settings), the
background wouldn't change like the sources list.
2022-08-15 18:37:40 -03:00
gxalpha
b7e7bf192c UI/themes: Add macOS separator fix to Dark and System 2022-08-15 18:04:14 -03:00
Warchamp7
66e01d2c5d UI: Add Yami variants for Acri and Rachni 2022-08-15 18:01:36 -03:00
Warchamp7
99363e2137 UI: Add Yami greyscale variant 2022-08-15 18:01:36 -03:00
Warchamp7
a1efc73e6a UI: Add Yami light variant 2022-08-15 18:01:36 -03:00
shiina424
43abfafe5a UI: Add missing Icon in System theme 2022-08-15 17:54:04 -03:00
Kurt Kartaltepe
f788e9f6b7 linux-v4l2: Add eventfd to signal udev on shutdown
Currently we use signals based on os_event's but the udev code blocks in
a 1s select (now poll) that cannot be signalled without an FD. This adds
an extra eventfd which will be signalled along with the os_event to
trigger the poll.

Also switches from select to poll to avoid issues with large fd values.
2022-08-15 16:58:09 -03:00
gxalpha
bad54448ce
libobs: Fix format specifier warning 2022-08-14 23:45:34 +02:00
Jim
7b76619c43 UI: Fix increment check for what's new (again)
Increment checks for the what's new file were not working as intended;
old stored increments would unintentionally pass to newer versions if
the newer versions did not explicitly start up with a whatsnew.json file
that had their version. The previous attempt to fix made it so that it
used a completely separate global.ini entry when a matching entry was
found. However, this entry did not take into account the beta or release
candidate number of the current build. This fixes it to bake in the
beta/rc number into the entry.
2022-08-14 01:06:53 -07:00