[vlc-commits] [Git][videolan/vlc][master] text_renderer/svg: don't write text if XML was not converted properly
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Mon Nov 27 08:48:56 UTC 2023
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
ae4942ee by Steve Lhomme at 2023-11-27T08:26:16+00:00
text_renderer/svg: don't write text if XML was not converted properly
- - - - -
1 changed file:
- modules/text_renderer/svg.c
Changes:
=====================================
modules/text_renderer/svg.c
=====================================
@@ -314,7 +314,8 @@ static char * SegmentsToSVG( text_segment_t *p_segment, int i_height, int *pi_to
{
char *psz_prev = psz_result;
char *psz_encoded = vlc_xml_encode( p_segment->psz_text );
- if( asprintf( &psz_result, "%s<tspan x='0' dy='%upx'>%s</tspan>\n",
+ if( psz_encoded == NULL ||
+ asprintf( &psz_result, "%s<tspan x='0' dy='%upx'>%s</tspan>\n",
(psz_prev) ? psz_prev : "",
i_height,
psz_encoded ) < 0 )
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ae4942ee29da1542525ba2feedfbb7c8e133b82c
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ae4942ee29da1542525ba2feedfbb7c8e133b82c
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list