75 Commits
Author SHA1 Message Date
gxalphaandRyan Foster f1f89a4864 shared/properties-view: Remove Qt 6.2 cmake code 2024-08-28 23:21:06 -04:00
gxalphaandRyan Foster 270cebe581 shared/properties-view: Use IconLabel for help icon
Changes the icon rendering for the properties view "question mark" icon
from Qt label HTML to use the IconLabel widget. This makes the label
high DPI.
Unfortunately the properties view code is a complete nightmare and in a
way, this PR makes this worse by adding the "leftWidget" widget as a
placeholder for what the "normal" label used to be, but you can't easily
replace that label with the icon label (while retaining prior
modifications from other nightmare code) so here we are. The entire
thing needs to be burnt to the ground and be rebuilt from the ground up
but that's a task for another day.
2024-08-28 19:42:10 -04:00
gxalphaandRyan Foster 7840c53eff shared/qt: Add IconLabel widget 2024-08-28 19:42:10 -04:00
tytan652andRyan Foster 72428ccd97 Remove CMake legacy code path
Except submodules and legacy_check macro since the former depend on it.
2024-08-28 13:53:25 -04:00
derrodandRyan Foster d9503d4c27 shared/media-playback: Remove compatibility with FFmpeg < 6.1 2024-08-23 13:44:04 -04:00
PatTheMavandRyan Foster 5eb04cdf9d shared: Improve incremental compile times via explicit file includes
When a source file contains an explicit include with a filename
following the "moc_<actual-filename>.cpp" pattern, then CMake's
AUTOMOC generation tool will recognize the matching pair and generate
the replacement header file and add the required include directory
entries.

For all files which do contain Q_OBJECT or similar declarations but do
not have an explicit include directive, the global mocs_compilation.cpp
file will still be generated (which groups all "missing" generated
headers).

The larger this global file is, the more expensive incremental
compilation will be as this file (and all its contained generated
headers) will be re-generated regardless of whether actual changes
occurred.
2024-08-22 16:45:12 -04:00
PatTheMavandRyan Foster 5bbb5e08c9 libobs: Add shared interface libraries to shared project directory
The ComPtr, WinHandle, and obfuscate source files are shared with
multiple sub-projects and thus need to be moved into the shared
directory to uncouple their availability from libobs itself.

The same applies to d3d8-api, inject-library, and hook-config
(from win-capture), as well as comutils (from the virtualcam-module).
2024-08-20 16:00:21 -04:00
PatTheMavandLain 3d2654f71b UI: Add UUID to file-based list widgets
List widgets are currently used as playlists in source properties,
but only contain the file paths and no other identifying information.

This can lead to files being added multiple times, so when changes to
list order occurs, plugins cannot uniquely identify which duplicate
item was actually changed (because they're only identified by the path).

By adding a UUID to the user data role of a list item, an additional
unique information is added that allows plugins to de-duplicate list
items.
2024-08-18 13:00:11 -07:00
PatTheMavandRyan Foster b8cfacaec3 Update formatting of CMake files 2024-08-14 12:07:47 -04:00
Richard StanwayandRyan Foster 1e6c375e95 happy-eyeballs: Specify AI_ADDRCONFIG for getaddrinfo
This might help to avoid returning IPv6 addresses on systems without
IPv6 connectivity.
2024-08-12 20:02:04 -04:00
Richard StanwayandRyan Foster 78ffd99ab1 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.
2024-08-12 20:02:04 -04:00
Richard StanwayandRyan Foster fce534572b 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.
2024-08-12 20:02:04 -04:00
Norihiro KamaeandRyan Foster 37b40184a0 shared/obs-scripting: Add inline qualifiers to functions in header file 2024-08-07 17:27:49 -04:00
7b2a6351b0 shared/media-playback: Unref sw_frame before reuse
By not performing an unref on sw_frame before using it again, a memory
"leak" was being created if the frame had side data. This removes a
previously-added check that optionally unrefs sw_frame, and just does
it every tick.

Co-authored-by: pkviet <pkv@obsproject.com>
2024-08-03 16:31:02 -07:00
tytan652 f051fdd75e UI,shared: Move OBSPropertiesView to its own directory 2024-07-27 07:38:36 +02:00
tytan652 5eb10135da UI,shared: Move SliderIgnoreScroll to its own directory 2024-07-27 07:38:36 +02:00
tytan652 5e25041491 UI,shared: Move VScrollArea to its own directory 2024-07-27 07:38:36 +02:00
tytan652 f5c25c66af UI,shared: Move OBSPlainTextEdit to its own directory 2024-07-27 07:38:36 +02:00
tytan652 48f139729f UI,shared: Move Qt Wrappers to its own directory 2024-07-27 07:38:36 +02:00
tytan652 2a53015ad7 deps,shared,plugins: Move opts-parser to shared folder 2024-07-27 07:38:36 +02:00
tytan652 f5e2f15d28 deps,shared,frontend-tools: Move obs-scripting to shared folder 2024-07-27 07:38:36 +02:00
tytan652 ade04f4f1c deps,shared,obs-ffmpeg: Move media-playback to shared folder 2024-07-27 07:38:36 +02:00
tytan652 4b0b71ad5f deps,shared,win-capture: Move ipc-util to shared folder 2024-07-27 07:38:36 +02:00
tytan652 fa0ffff7c0 deps,shared,obs-outputs: Move happy-eyeballs to shared folder 2024-07-27 07:38:36 +02:00
tytan652 f293a6edd1 deps,shared,plugins: Move file-updater to shared folder 2024-07-27 07:38:36 +02:00