Commit 6bf5ea4a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

meta: add assertion

parent 313194d7
...@@ -116,6 +116,7 @@ void vlc_meta_Delete( vlc_meta_t *m ) ...@@ -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 ) 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] ); 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; p_meta->ppsz_meta[meta_type] = psz_val ? strdup( psz_val ) : NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment