mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Fix possible replay race condition, move mutex out of replay
This commit is contained in:
@@ -24,8 +24,12 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
gsr_replay_buffer *replay_buffer;
|
||||
|
||||
pthread_mutex_t file_write_mutex;
|
||||
bool mutex_created;
|
||||
bool file_write_mutex_created;
|
||||
|
||||
pthread_mutex_t replay_mutex;
|
||||
bool replay_mutex_created;
|
||||
|
||||
gsr_encoder_recording_destination recording_destinations[GSR_MAX_RECORDING_DESTINATIONS];
|
||||
size_t num_recording_destinations;
|
||||
|
||||
Reference in New Issue
Block a user