From fb32b85f4cf62a69eda47bd52edf8310a9ee86fb Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 17 Sep 2015 14:47:51 -0700 Subject: [PATCH] libobs: Shut down encoder if valid but not active It's not impossible that this sort of thing could happen, although unlikely. --- libobs/obs-encoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libobs/obs-encoder.c b/libobs/obs-encoder.c index d82897529..2d311ccb7 100644 --- a/libobs/obs-encoder.c +++ b/libobs/obs-encoder.c @@ -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( -- GitLab