提交 0ea39baf 编写于 作者: R Richard Stanway

libobs: Clear last error on encoder shutdown

This fixes an issue where an encoder may error out on a path that
doesn't use obs_encoder_set_last_error, resulting in a stale error being
used.
上级 6b441a18
......@@ -523,6 +523,7 @@ void obs_encoder_shutdown(obs_encoder_t *encoder)
encoder->offset_usec = 0;
encoder->start_ts = 0;
}
obs_encoder_set_last_error(encoder, NULL);
pthread_mutex_unlock(&encoder->init_mutex);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册