mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08: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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user