Skip to content

Commit

Permalink
libobs: Fix grouped encoders never starting again after disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
palana authored and Lain-B committed Apr 20, 2024
1 parent 7a3f5d7 commit 2edc555
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libobs/obs-encoder.c
Expand Up @@ -354,6 +354,9 @@ static void remove_connection(struct obs_encoder *encoder, bool shutdown)
if (encoder->encoder_group) {
pthread_mutex_lock(&encoder->encoder_group->mutex);
encoder->encoder_group->encoders_started -= 1;
if (encoder->encoder_group->encoders_started == 0)
encoder->encoder_group->start_timestamp = 0;

pthread_mutex_unlock(&encoder->encoder_group->mutex);
}

Expand Down

0 comments on commit 2edc555

Please sign in to comment.