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:
jp9000 2015-09-17 14:47:51 -07:00
parent c107181b9f
commit fb32b85f4c

View file

@ -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(