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
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits