提交 fb32b85f 编写于 作者: J jp9000

libobs: Shut down encoder if valid but not active

It's not impossible that this sort of thing could happen, although
unlikely.
上级 c107181b
...@@ -369,8 +369,8 @@ bool obs_encoder_initialize(obs_encoder_t *encoder) ...@@ -369,8 +369,8 @@ bool obs_encoder_initialize(obs_encoder_t *encoder)
if (encoder->active) if (encoder->active)
return true; return true;
if (encoder->context.data)
return false; obs_encoder_shutdown(encoder);
if (encoder->info.create) if (encoder->info.create)
encoder->context.data = encoder->info.create( encoder->context.data = encoder->info.create(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册