mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-29 19:22:36 +08:00
libobs: Fix grouped encoders never starting again after disconnect
(based on <https://github.com/amazon-contributing/upstreaming-to-obs-studio/commit/340c205ce28adad2de103fa99276b9182ce28c38>)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user