[vlc-devel] commit: Fixed text_style_Copy() behaviour. (Laurent Aimar )
git version control
git at videolan.org
Sun Feb 28 00:27:39 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Feb 27 22:48:22 2010 +0100| [6b4ec806e6e15ba70ed1d577ab7d8dd1efb33262] | committer: Laurent Aimar
Fixed text_style_Copy() behaviour.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b4ec806e6e15ba70ed1d577ab7d8dd1efb33262
---
src/video_output/video_text.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/video_output/video_text.c b/src/video_output/video_text.c
index ef522ef..d9383c6 100644
--- a/src/video_output/video_text.c
+++ b/src/video_output/video_text.c
@@ -185,15 +185,10 @@ text_style_t *text_style_Copy( text_style_t *p_dst, const text_style_t *p_src )
return p_dst;
/* */
- if( p_dst->psz_fontname )
- free( p_dst->psz_fontname );
-
- /* */
*p_dst = *p_src;
- /* */
- if( p_dst->psz_fontname )
- p_dst->psz_fontname = strdup( p_dst->psz_fontname );
+ if( p_src->psz_fontname )
+ p_dst->psz_fontname = strdup( p_src->psz_fontname );
return p_dst;
}
More information about the vlc-devel
mailing list