提交 c107181b 编写于 作者: J jp9000

obs-outputs: Stop output after joining send thread

The encoders were stopping before processing was completed, which could
cause the output to access data that's potentially invalidated.
上级 88996aef
......@@ -152,9 +152,9 @@ static void rtmp_stream_stop(void *data)
pthread_join(stream->connect_thread, &ret);
if (stream->active) {
obs_output_end_data_capture(stream->output);
os_sem_post(stream->send_sem);
pthread_join(stream->send_thread, &ret);
obs_output_end_data_capture(stream->output);
RTMP_Close(&stream->rtmp);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册