Commit Graph

14286 Commits

Author SHA1 Message Date
Ryan Foster ca51d330ea CI: Pin actions/upload-artifact to v4.3.5 for windows-patches
Work around a bug with too many open files in versions before v4.3.5 and
also in v4.3.6 due to a revert. The relevant error message is:

Error: EMFILE: too many open files
2024-08-15 19:38:06 -04:00
Ryan Foster 144599fbff libobs: Update version to 30.2.3 30.2.3 2024-08-15 17:53:35 -04:00
pkv 7554532364 UI: Fix leak with paint event of volume slider
This fixes a memory leak introduced in [1] where a new QColor is not
balanced by a delete.

[1] UI: Update volume meter appearance
https://github.com/obsproject/obs-studio/commit/52ae5fc4bd518c67edd8ab94121ace05d9076892

Signed-off-by: pkv <pkv@obsproject.com>
(cherry picked from commit 19abab097d)
2024-08-15 17:17:06 -04:00
Ryan Foster 0e09d040b4 obs-browser: Update version to 2.23.6
fe07275 - Fix CSS injection for sites with strict CSP
2024-08-15 13:42:17 -04:00
Richard Stanway 42136433cf happy-eyeballs: Specify AI_ADDRCONFIG for getaddrinfo
This might help to avoid returning IPv6 addresses on systems without
IPv6 connectivity.

(cherry picked from commit 1e6c375e95)
2024-08-15 13:41:22 -04:00
Richard Stanway e494f93846 happy-eyeballs: Move happy_eyeballs_destroy to a thread
On Windows, shutdown() will not interrupt a blocking connect() call, so
happy_eyeballs_destroy could block until the remaining candidates timed
out. As happy_eyeballs_destroy is called in the RTMP connect path, this
would stall the RTMP connection and cause the winning candidate's socket
to be disconnected due to a timeout.

(cherry picked from commit 78ffd99ab1)
2024-08-15 13:41:22 -04:00
Richard Stanway 09d2e37709 happy-eyeballs: Reserve array length for all candidates
The code currently assumes that the array does not change during
execution, this assumption is violated when the darray resizes causing
previous pointers to point to invalid memory and cause undefined
behavior and crashes.

This may need refactoring in the future, this commit simply fixes the
issue for now.

(cherry picked from commit fce534572b)
2024-08-15 13:41:22 -04:00
derrod 3de8267620 obs-outputs: Defer muxer destruction to task queue
(cherry picked from commit dd3ffc1e34)
2024-08-15 13:41:22 -04:00
derrod ba91aa87c6 libobs: Ensure encoder is not destroyed prematurely 2024-08-15 13:33:48 -04:00
Gol-D-Ace ce6f9a4742 win-capture: Add Zenless Zone Zero to compatibility list 2024-07-24 16:05:26 -04:00
Ryan Foster 5854f3b9e5 libobs: Update version to 30.2.2
I forgot to update this before tagging 30.2.1, so the updater won't stop
telling people there's an update available, even after updating.

Update this for real now to 30.2.2.
30.2.2
2024-07-23 11:56:59 -04:00
Ryan Foster 4f7be9b84b libobs: Update version to 30.2.1
I forgot to update this before tagging 30.2.1, so the updater won't stop
telling people there's an update available, even after updating.
2024-07-23 11:56:19 -04:00
Kurt Kartaltepe 7912d06b65 libobs-opengl: Disable NV12/P010 on Windows
These formats are used for texture encoding but the OpenGL texture
encoding pipeline is not supported on Windows. This can also cause
failure to initialize on Windows so it's better to disable the formats.
30.2.1
2024-07-22 18:07:03 -04:00
derrod 31963f8dac obs-outputs: Set FLV DTS offset based on first audio or video packet 2024-07-22 17:43:45 -04:00
derrod 7cf4974965 CI: Do not mark legacy MF/AMF plugins as deleted 2024-07-22 12:19:46 -04:00
Norihiro Kamae 2fa77c4021 UI: Fix cast of pointer type at invalid current scene setting on load 2024-07-20 16:49:21 -07:00
Ryan Foster c5a01b7df4 obs-websocket: Update version to 5.5.2
Bug Fixes:
- Fix an issue where the virtualcam requests would report that the
virtualcam is not available.
- Fix an issue with the config migration where the migrated settings
were not being persisted to disk.

Changelog:
https://github.com/obsproject/obs-websocket/commit/0548c7798a323fe5296c150e13b898a5ee62fc1e
2024-07-19 20:07:14 -04:00
Ryan Foster 02c1742b30 libobs/graphics: Prevent heap overflow in libnsgif
See upstream commit:
https://source.netsurf-browser.org/libnsgif.git/commit/?id=a268d2c15252ac58c19f1b19771822c66bcf73b2
2024-07-18 14:34:31 -04:00
Translation Updater e7d6707fa7 Update translations from Crowdin 2024-07-17 09:34:12 +00:00
Warchamp7 ec5297b549 UI: Adjust sizing of Classic audio meter elements 2024-07-15 18:43:46 -03:00
Warchamp7 0e84188f37 UI: Fix read-only QTextEdit background color 2024-07-15 18:41:40 -03:00
Warchamp7 bde68fed32 UI: Fix source tree icon spacing 2024-07-15 18:39:35 -03:00
Exeldro 1cb1864cc0 libobs: Fix crash when mix is NULL 30.2.0 2024-07-11 17:24:55 -04:00
Ruwen Hahn 3a884277ea UI: Fix qt-helpers.{c,h}pp not being removed from legacy.cmake
Follow-up to https://github.com/obsproject/obs-studio/pull/10957
2024-07-11 13:45:19 -04:00
Warchamp7 da997d9648 UI: Add field growth policy to form layouts 2024-07-10 19:53:30 -04:00
Ruwen Hahn 7327663112 UI: Remove QFuture usage
`QFuture`s are broken on older Qt versions, even with the deadlock
workaround (see <https://github.com/obsproject/obs-studio/issues/10929>)
2024-07-10 16:12:53 -04:00
Ruwen Hahn b74e7ede0e UI: Move code out of unnamed lambdas
This is in preparation of the next change, to hopefully minimize
the resulting diff
2024-07-10 16:12:53 -04:00
tytan652 5545674e6d CI: Fix flatpak-builder-lint action
- Fix for loops syntax
- Manage jq empty output
2024-07-09 17:10:48 -04:00
derrod 877ddad270 win-wasapi: Remove noisy and useless debug logging 2024-07-06 16:21:21 -07:00
derrod c6a100a980 obs-ffmpeg: Honor preferred format in native NVENC 2024-07-06 16:18:52 -07:00
Kurt Kartaltepe 8c71b0b586 libobs: Fix plane heights for odd values 2024-07-03 02:11:48 -07:00
Ryan Foster 9d67bf2662 Revert "plugins/win-dshow: Add CUDA decoder"
This reverts commit ce4c99be4e.

This was causing infinitely looping log errors in systems with no
CUDA-capable hardware when hardware decoding was enabled on video
capture devices with custom config enabled.
30.2.0-rc1
2024-06-26 18:43:09 -04:00
tt2468 8892edde05 libobs: Merge obs_encoder_stop() and ..._stop_internal()
There is no longer any need for them to be separate functions. This is
just code cleanup.
2024-06-26 16:42:05 -04:00
tt2468 06291c7201 libobs: Fix race when to-be-destroyed encoder group finishes stopping
Fixes a crash when the following steps occur:
- Encoder group created and then started with encoders, only the group
owning encoder refs
- Encoder group destroy called: group has `destroy_on_stop` set
without actual destroy
- Outputs holding encoders from stopping are stopped
- `remove_connection()` function destroys encoder group, releasing
encoders and causing the currently processed encoder to be destroyed
early
- parent scopes try to access destroyed encoder pointer and crash

This change moves some logic around to improve the release/destruct
order of `obs_encoder_stop()` to fix the race above.

Note: Cases of encoder errors will not destruct the group if it has
`destroy_on_stop` set, as the encoder is also not destroyed if it also
is set to destroy on stop. This part of the code should be revisited
at a later date and fixed up to prevent memory leaks.
2024-06-26 16:42:05 -04:00
tt2468 fb5bbc8575 libobs: Set encoder initialized call closer to shutdown
This is mainly code cleanup.
2024-06-26 16:42:05 -04:00
Ruwen Hahn 7d19add10b UI: Display dialog for multitrack video output audio channels mismatch 2024-06-26 16:10:15 -04:00
Vainock 4830d6903e UI: Fix capitalization of 'OBS' and 'RTMP' 2024-06-26 15:01:01 -04:00
Warchamp7 47fb194223 UI: Adjust Yami (Classic) styling 2024-06-26 14:58:13 -04:00
derrod edcda5a825 obs-x264: Ignore stats/qp file and multipass options 2024-06-26 13:58:08 -04:00
derrod 2e6e79b4f5 obs-outputs: Skip trak box if track has no data 2024-06-26 13:57:59 -04:00
derrod b34fbb116e obs-ffmpeg: Check if current NVENC configuration supports 4:4:4 encode 2024-06-26 13:57:43 -04:00
Penwywern 4517918c7a cmake: Fix FFmpeg version regex 2024-06-26 12:26:56 -04:00
derrod 6cc0e2b803 obs-outputs: Fix file splitting ts offset using video DTS instead of PTS 2024-06-25 23:36:33 -04:00
derrod ed2478535f obs-outputs: Do not create MP4 track chunks without samples 2024-06-25 23:36:33 -04:00
Ed Maste fd34bab615 UI: Link Qt::DBus on FreeBSD
As with Linux we need to link Qt::DBus on FreeBSD now that there's a
HighContrastEnabled implementation that makes use of it.

Fixes: 41ba8bdfdd ("UI: Add HighContrastEnabled implementation fo...")
2024-06-25 22:37:14 -04:00
Alex Luccisano 5f98d34e2c UI: Fix multitrack-video audio track index
Fix a minor oversight from a recent commit. Audio
track indexing in the UI is 1-based while underlying
code uses 0-based indexing.
2024-06-20 06:44:33 +02:00
tt2468 6c389271b3 obs-ffmpeg: Close VAAPI device on vaInitialize fail
On some systems (eg. mine), VAAPI fails on vaInitialize. Valgrind was
able to spot that the device was not being closed, and it appears to
have been correct. This fixes a memory leak.
2024-06-19 19:46:05 -07:00
Fabien Lavocat 6457d7b429 rtmp-services: Add Dolby Millicast 2024-06-19 13:13:16 -04:00
gxalpha 92352f18b8 cmake: Add obs-config.h to libobs headers
Adds the header to make it findable in IDEs
2024-06-19 13:08:30 -04:00
Ed Maste a189489dd2 CI: Fix FreeBSD package installation
FreeBSD's package tool is pkg(8), and install is the command verb passed
to it.

Fixes: fb4d65875e ("CI: Update Linux build scripts to use CMake p...")
2024-06-19 13:06:10 -04:00