[vlc-commits] freetype: early fail
Francois Cartegnie
git at videolan.org
Thu Sep 10 23:11:30 CEST 2020
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Aug 4 22:04:37 2020 +0200| [50410a7650a448062441ee3e756c1595ef21999c] | committer: Francois Cartegnie
freetype: early fail
(cherry picked from commit 0a7b031e591c9f56252463ef1d3b38b56bf68bf4)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=50410a7650a448062441ee3e756c1595ef21999c
---
modules/text_renderer/freetype/freetype.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/text_renderer/freetype/freetype.c b/modules/text_renderer/freetype/freetype.c
index 314e5024b6..32f1ea403b 100644
--- a/modules/text_renderer/freetype/freetype.c
+++ b/modules/text_renderer/freetype/freetype.c
@@ -1130,7 +1130,7 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region_out,
subpicture_region_t *p_region_in,
const vlc_fourcc_t *p_chroma_list )
{
- if( !p_region_in )
+ if( !p_region_in || !p_region_in->p_text )
return VLC_EGENERIC;
filter_sys_t *p_sys = p_filter->p_sys;
More information about the vlc-commits
mailing list