mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
libobs: Shut down encoder if valid but not active
It's not impossible that this sort of thing could happen, although unlikely.
This commit is contained in:
parent
c107181b9f
commit
fb32b85f4c
@ -369,8 +369,8 @@ bool obs_encoder_initialize(obs_encoder_t *encoder)
|
||||
|
||||
if (encoder->active)
|
||||
return true;
|
||||
if (encoder->context.data)
|
||||
return false;
|
||||
|
||||
obs_encoder_shutdown(encoder);
|
||||
|
||||
if (encoder->info.create)
|
||||
encoder->context.data = encoder->info.create(
|
||||
|
Loading…
Reference in New Issue
Block a user