12833 Commits
Author SHA1 Message Date
Norihiro KamaeandLain c58e511813 UI: Translate place holder name for new group
(cherry picked from commit 323f3957cd)
29.1.3
2023-06-18 15:05:22 -07:00
Norihiro KamaeandLain 0b7ac96157 UI: Fix changed state of audio settings
When changing audio channels, sample rate, or audio buffering settings
multiple times by hitting `Apply` button, the internal `changed` state
got corrupted. To avoid this, set the changed state when changed
something, but do not clear the changed state.

(cherry picked from commit 846cdafbed)
2023-06-18 15:05:22 -07:00
Norihiro KamaeandLain 4e1e947095 UI: Fix changing quick transition to/from fade to black
(cherry picked from commit 35463cb464)
2023-06-18 15:05:22 -07:00
Norihiro KamaeandLain e2c481cf95 UI: Fix checked state of source toolbar menu item
After the source toolbar was hidden or shown by a hotkey, the checked
state of the menu item was not updated.

(cherry picked from commit a1c88d58fc)
2023-06-18 15:05:22 -07:00
Norihiro KamaeandLain eae2affc09 text-freetype2: Fix not updating chat log mode property
(cherry picked from commit 43f7c8c928)
2023-06-18 15:05:22 -07:00
Lain 8915d7c3bd libobs: Update version to 29.1.3 2023-06-17 00:44:48 -07:00
Huts, RomanandRyan Foster e3cccac6ba obs-ffmpeg: Fix logic in one of the AMF preset fallback checks
(cherry picked from commit 94d0b654f0)
2023-06-16 18:43:35 -04:00
Ryan Foster 2b7cca8595 obs-websocket: Update version to 5.2.3
(cherry picked from commit ced135a68e)
2023-06-16 18:43:35 -04:00
John BradleyandRyan Foster c6ac31f7e1 libobs: Set video thread qos class to user interactive on macOS
(cherry picked from commit 8981afe5b4)
2023-06-16 18:43:35 -04:00
gxalphaandRyan Foster e0519ed1e8 mac-capture: Explicitly set clear background for SCK
(cherry picked from commit 2ea47bb65a)
2023-06-16 18:43:35 -04:00
ExeldroandRyan Foster 0be3b3b845 UI: Don't update text source when nothing changed
(cherry picked from commit e830043851)
2023-06-16 18:43:35 -04:00
CodeYan01andRyan Foster 850df1058f docs: Clarify da_erase_range
(cherry picked from commit 26003fdf79)
2023-06-16 18:43:35 -04:00
Ilya ChernikovandRyan Foster c67f78b122 deps/obs-scripting: Fix crash removing callbacks in script_unload
Signed-off-by: Ilya Chernikov <chernikov.i123@gmail.com>
(cherry picked from commit a609cfb2f0)
2023-06-16 18:43:35 -04:00
LainandRyan Foster 12110325b8 libobs: Use da_clear() to clear obs_core_data::sources_to_tick
Makes it a bit more clear what's going on

(cherry picked from commit 1aed7ed114)
2023-06-16 18:43:35 -04:00
LainandRyan Foster 3d64f339cf libobs/util: Add da_clear()
Adds a bit more of an explicit function for clearing dynamic arrays

(cherry picked from commit 85ca5a25be)
2023-06-16 18:43:35 -04:00
ExeldroandRyan Foster 59cb2c2185 libobs: Don't keep the sources mutex in tick_sources
Allow other threads to use sources while the graphics thread does
video_tick, update, activate and deactivate on sources

(cherry picked from commit a77789b266)
2023-06-16 18:43:35 -04:00
LainandRyan Foster 72ced7fa91 libobs/util: Actually fix use-after-free in da_insert_new
d040de51bb was prematurely merged, this
should actually do the job as requested.

(cherry picked from commit 9178ec6a8d)
2023-06-16 18:43:35 -04:00
Norihiro KamaeandRyan Foster e1e0d944fc libobs/util: Fix use-after-free in darray_insert_new
After the array is allocated in `darray_ensure_capacity`, the pointer
`item` is invalid.

(cherry picked from commit d040de51bb)
2023-06-16 18:43:35 -04:00
Richard StanwayandRyan Foster a305137392 win-capture: Skip compat helper matching if properties are null
Fixes compatibility messages appearing when no window is selected
in window capture properties.

(cherry picked from commit b756c78f44)
2023-06-16 18:43:35 -04:00
Gol-D-AceandRyan Foster 6dbf45dce9 win-capture: Add Honkai: Star Rail to compatibility list
(cherry picked from commit d3df414603)
2023-06-16 18:43:35 -04:00
tududwebandRyan Foster 018bfe87e7 UI: Don't trigger a settings update when list is empty
To avoid recursive call

(cherry picked from commit 4871fd301a)
2023-06-16 18:43:35 -04:00
rhutsAMDandRyan Foster 946b0167e9 obs-ffmpeg: Consider requested throughput in AMF preset fallback
(cherry picked from commit 4bfe291520)
2023-06-16 18:43:35 -04:00
Huts, RomanandRyan Foster 5b8f429c8e obs-ffmpeg: Fix AMF encoder reconfiguration
Must Flush() or Drain() before ReInit()

(cherry picked from commit 275bb344d8)
2023-06-16 18:43:35 -04:00
cg2121andRyan Foster a11a511829 UI: Fix filter shortcuts not showing in context menu
This fixes the shortcuts not showing up in the filters context
menu for rename and remove. This also has a code cleanup for
the rename action, as now it is created in the ui file.

(cherry picked from commit 4c9e1949ad)
2023-06-16 18:43:35 -04:00
Norihiro KamaeandRyan Foster 28a8ed16a9 text-freetype2: Fix crash after reaching buffer size
The texbuf has a fixed size that won't expand. When a lot of multi-byte
characters has arrived, it overflow and src_glyph becomes NULL.

(cherry picked from commit 4fb2bc38de)
2023-06-16 18:43:35 -04:00
cg2121andRyan Foster b281a74e25 UI: Fix menu actions missing shortcuts
The scene and source rename/remove actions were missing shortcuts
in the context menu.

(cherry picked from commit 016ce128b7)
2023-06-16 18:43:35 -04:00
derrodandLain 447710ab2c libobs: Fix crash when properties are deleted in callback 2023-06-09 05:05:15 -07:00
derrodandLain e26a04fa44 UI: Assume RTMP if service has no protcol 2023-06-03 13:44:44 -07:00
derrodandLain fb5d03130a Revert "UI: Reset service selection to custom if name not found"
This reverts commit e55171f28c.
2023-06-03 13:44:44 -07:00
Lain e15a92e16f libobs: Update version to 29.1.2 29.1.2 2023-05-27 14:50:49 -07:00
Richard StanwayandRodney 0bab4adf92 obs-outputs: Remove support for "RTMP Go Away" feature (#8959)
Meta have filed a patent application on the Go Away feature. This goes
against the spirit of free software and puts the use of this feature in
questionable legal status, so let's remove this code until the patent
situation is resolved.

This reverts commits a593fe6755 and
dada82fec1.

(cherry picked from commit 48a0e7822a)
2023-05-26 21:28:10 +02:00
Norihiro KamaeandRyan Foster e4142c8740 UI: Fix crash on patronJsonThread
If a user exit obs while patronJsonThread is running, the thread crashed
with the error below.
  QThread: Destroyed while thread is still running

(cherry picked from commit b21edafe98)
2023-05-26 14:47:09 -04:00
LainandRyan Foster 8b6b18079e deps/media-playback: Just null the first frame pointer on decode
memset is a little excessive considering we only check the first
pointer.

(cherry picked from commit 192d33ce86)
2023-05-26 14:47:09 -04:00
LainandRyan Foster faf4fd5b40 deps/media-playback: Check is_active when frame preloading
Adds a check to make sure that delayed preload is ignored if the stinger
is restarted/interrupted. Just adds this check to the previous commit to
make sure that it doesn't redundantly try to preload a frame when
playback is restarted.

(cherry picked from commit 40ce466f4d)
2023-05-26 14:47:09 -04:00
LainandRyan Foster 6e5e36d556 deps/media-playback: Fix crash when interrupting stingers
The `mp_media::obsframe` varaible is a variable used to store the
current frame, or the first frame on stop. However, it's never cleared,
and while decoding a frame, it's invalid. The variable was added for
delayed preloading of the first frame for stingers.

Now, for more context, when media sources stop, it stores the first
frame of the video so it can set the source's current async texture to
that frame, effectively preloading the first frame into the backend,
making it so that when you play back that media, it's able to start
playback instantly without having to wait for the thread to play back
that frame, causing seamless playback.

Normally, preload happens right when first frame is finished decoding,
thus it wasn't a problem before these variables and delayed preloading
was added. However, with stingers, I delayed that preload further
because stingers are kind of a special case because the stinger does not
clear itself right away on stop. Because of that, it was causing it to
flash the first frame at the end of the stinger. This is why `obsframe`
and `request_preload` were added: it's a way of signaling the media
source to preload the first frame when the stinger itself is fully
completed. It was added to fix that stinger bug.

However, if the user interrupts playback of the stinger (e.g. swaps to
another scene while in the middle of the transition), that
`request_preload` might still be queued and happen while the media
source is still decoding, and thus, while `obsframe` is invalid.

I realize that we should probably refactor and clean up the
media-playback lib.

(cherry picked from commit a12d5812af)
2023-05-26 14:47:09 -04:00
gxalphaandRyan Foster 3f3ff4fd92 UI: Disallow exiting settings with no track in advanced mode
(cherry picked from commit 4b37692939)
2023-05-26 14:47:09 -04:00
gxalphaandRyan Foster 85d22f5ff5 UI: Disallow exiting settings with no track in simple mode
(cherry picked from commit 2bc368349f)
2023-05-26 14:47:09 -04:00
Norihiro KamaeandRyan Foster cc667ad7d9 UI: Fix crash when receiving multiple SIGINT
When there are two or more SIGINT signals were sent to obs, obs crashes
because the 2nd SIGINT calls `close` though the main window has been
deleted.
2023-05-26 14:47:09 -04:00
PatTheMavandRyan Foster 11dd933b8d libobs: Adds obs.hpp to exported header files
Required for plugins built using C++ linking against libobs.
2023-05-26 14:47:09 -04:00
gxalphaandRyan Foster 2fbd54958d UI: Only defer property updates for input and transition sources
Deferring properties was only ever made for input and transition
sources. As other property dialogs do not have an "Ok" button that would
cause an update to happen, if the deferred flag was set the callback
would never be called.
Also clarifies the docs to reflect this.
2023-05-26 14:47:09 -04:00
Norihiro KamaeandRyan Foster 45caa065b7 win-dshow: Remove obsolete translation
A commit f50aa5e01b added a translation ConfigureAudio but never used.
2023-05-26 14:47:09 -04:00
Norihiro KamaeandRyan Foster 042f5bc139 win-capture: Remove obsolete translation
A commit 80b4a65cd2 added a translation `Method.Auto` but the source
code uses `WindowCapture.Method.Auto` instead.
2023-05-26 14:47:09 -04:00
Norihiro KamaeandRyan Foster 0c061865a6 obs-qsv11: Add missing translation 2023-05-26 14:47:09 -04:00
Norihiro KamaeandRyan Foster 8c551ad2a5 obs-outputs: Add missing translations 2023-05-26 14:47:09 -04:00
Norihiro KamaeandRyan Foster 43c419a808 obs-filters: Remove obsolete translation in expander-filter
Expander.None was never used.
2023-05-26 14:47:09 -04:00
Norihiro KamaeandRyan Foster bce23262de obs-filters: Add missing translation in chroma-key-filter
A selection Custom for a property key_color_type was not translated.
Use the same translation key CustomColor as color-key-filter.
2023-05-26 14:47:09 -04:00
Norihiro KamaeandRyan Foster 554518bc78 obs-ffmpeg: Add missing translations
The name of the obs_output_t won't appear in usual operation but some
output types have the translation and others do not. Let's translate
them.
Also translate `FilePath` property name.
2023-05-26 14:47:09 -04:00
Norihiro KamaeandRyan Foster 28d79464c2 obs-ffmpeg: Add missing translations 2023-05-26 14:47:09 -04:00
Norihiro KamaeandRyan Foster 4fd4792d96 obs-ffmpeg: Remove obsolete translations
A commit 4e140d2ff added AMF error messages but they were never used.
A commit 45d029b1f removed some code but a translation key "Advanced"
was left.
A commit 77fbfbe5c removed code to translate NVENC.TooManyBFrames but
the translation key was left.
A commit 6cc7cf3d5 removed the code to select codecs but the translation
was left.
2023-05-26 14:47:09 -04:00
Norihiro KamaeandRyan Foster 19731875d2 mac-videotoolbox: Remove obsolete translation
A commit e461ec4be1 added a translation key "VTEncoder" but never used.
2023-05-26 14:47:09 -04:00