[vlc-commits] meta: add assertion
Rémi Denis-Courmont
git at videolan.org
Sat Aug 17 21:18:13 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 17 22:17:42 2013 +0300| [6bf5ea4ac04a70b1bb6ded0e5784e0cf07be9dec] | committer: Rémi Denis-Courmont
meta: add assertion
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6bf5ea4ac04a70b1bb6ded0e5784e0cf07be9dec
---
src/input/meta.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/input/meta.c b/src/input/meta.c
index aeda5d4..6234719 100644
--- a/src/input/meta.c
+++ b/src/input/meta.c
@@ -116,6 +116,7 @@ void vlc_meta_Delete( vlc_meta_t *m )
void vlc_meta_Set( vlc_meta_t *p_meta, vlc_meta_type_t meta_type, const char *psz_val )
{
free( p_meta->ppsz_meta[meta_type] );
+ assert( psz_val == NULL || IsUTF8( psz_val ) );
p_meta->ppsz_meta[meta_type] = psz_val ? strdup( psz_val ) : NULL;
}
More information about the vlc-commits
mailing list