From 6e05e8b3259b213ed3a2184768ab4336920c8fbe Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 30 Apr 2021 18:30:12 -0700 Subject: [PATCH] text-freetype2: Fix empty text not updating source Fixes a bug where if you update the source with empty text, it would still continue to use the previous text value. --- plugins/text-freetype2/text-freetype2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/text-freetype2/text-freetype2.c b/plugins/text-freetype2/text-freetype2.c index cc80d2a49..16c0e0be8 100644 --- a/plugins/text-freetype2/text-freetype2.c +++ b/plugins/text-freetype2/text-freetype2.c @@ -488,7 +488,7 @@ skip_font_load: } } else { const char *tmp = obs_data_get_string(settings, "text"); - if (!tmp || !*tmp) + if (!tmp) goto error; if (srcdata->text != NULL) {