obs-studio/shared/bpm
Alex Luccisano 39f0ed6e75 shared/bpm: Fixed crash when using Stream Delay
BPM initialization occurs with the first call to the
`bpm_inject()` callback function. When Stream Delay is
active, there is a case where the first call might never
happen, specifically if a user stops the stream with the
discard delay option before streaming begins. In such a
case OBS will crash due to an uninitialized mutex being
referenced in `bpm_destroy()`.

Use `pthread_once()` in both the `bpm_inject()` callback
and `bpm_destroy()` to ensure BPM initialization has occurred.
2024-10-04 15:49:44 -04:00
..
bpm-internal.h shared/bpm: Fixed crash when using Stream Delay 2024-10-04 15:49:44 -04:00
bpm.c shared/bpm: Fixed crash when using Stream Delay 2024-10-04 15:49:44 -04:00
bpm.h shared/bpm: Add BPM (Broadcast Performance Metrics) 2024-09-05 16:38:58 -04:00
CMakeLists.txt cmake: Update supported CMake version range to 3.28 and 3.30 2024-09-13 14:42:32 -04:00