mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-05 11:03:31 +00:00
Merge f4c1be48b7
into 9d67bf2662
This commit is contained in:
commit
a33cd3ec5c
|
@ -745,11 +745,11 @@ static void *ffmpeg_mux_io_thread(void *data)
|
||||||
|
|
||||||
// Loop to write in chunk_size chunks
|
// Loop to write in chunk_size chunks
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
pthread_mutex_lock(&ffm->io.data_mutex);
|
||||||
|
|
||||||
shutting_down = os_atomic_load_bool(
|
shutting_down = os_atomic_load_bool(
|
||||||
&ffm->io.shutdown_requested);
|
&ffm->io.shutdown_requested);
|
||||||
|
|
||||||
pthread_mutex_lock(&ffm->io.data_mutex);
|
|
||||||
|
|
||||||
// Fetch as many writes as possible from the deque
|
// Fetch as many writes as possible from the deque
|
||||||
// and fill up our local chunk. This may involve seeking
|
// and fill up our local chunk. This may involve seeking
|
||||||
// if ffmpeg needs to, so take care of that as well.
|
// if ffmpeg needs to, so take care of that as well.
|
||||||
|
|
Loading…
Reference in a new issue