mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-12 13:44:56 +02:00
win32text: don't render empty strings
This commit is contained in:
parent
a2fb8abaf3
commit
4045a1a5f8
@ -307,6 +307,9 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
|
||||
|
||||
/* Sanity check */
|
||||
if( !p_region_in || !p_region_out ) return VLC_EGENERIC;
|
||||
if( !p_region_in->psz_text || !*p_region_in->psz_text )
|
||||
return VLC_EGENERIC;
|
||||
|
||||
psz_string = malloc( (strlen( p_region_in->psz_text )+1) * sizeof(TCHAR) );
|
||||
if( !psz_string )
|
||||
return VLC_ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user