[vlc-commits] subpicture: use the provided core function

Jean-Baptiste Kempf git at videolan.org
Tue Jul 28 16:01:56 CEST 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr  6 19:12:10 2015 +0200| [efbc00f7cfb5fb5ca301bfc1b0d9ce2412f7e18f] | committer: Jean-Baptiste Kempf

subpicture: use the provided core function

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=efbc00f7cfb5fb5ca301bfc1b0d9ce2412f7e18f
---

 src/misc/subpicture.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/subpicture.c b/src/misc/subpicture.c
index e1237cb..bae12f8 100644
--- a/src/misc/subpicture.c
+++ b/src/misc/subpicture.c
@@ -307,7 +307,7 @@ subpicture_region_t* subpicture_region_Copy( subpicture_region_t *p_region_src )
     p_region_dst->psz_text = p_region_src->psz_text ? strdup(p_region_src->psz_text) : NULL;
     p_region_dst->psz_html = p_region_src->psz_html ? strdup(p_region_src->psz_html) : NULL;
     if (p_region_src->p_style != NULL) {
-        p_region_dst->p_style = malloc(sizeof(*p_region_dst->p_style));
+        p_region_dst->p_style = text_style_New();
         p_region_dst->p_style = text_style_Copy(p_region_dst->p_style,
                                                 p_region_src->p_style);
     }



More information about the vlc-commits mailing list