Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix data race when stop stream during connection (obsproject#184)
Fix a data race when user manually stopped stream during connecting to a RTMP server. This is caused by a data race in `obs_output_destroy` method, which call `rtmp_stream_destroy` method before output became active. In such case, the `rtmp_stream_destroy` method will detach `end_data_capture` thread, thus it will result in a potential crash. In order to avoid this, the thread which destroys output should wait till `end_data_capture` will be finished.
- Loading branch information