Commit c9308315 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix a segfault when parsing meta data in ogg.

Thanks to Vincent Penquerc'h.
parent dc3b6e3c
...@@ -135,11 +135,8 @@ static inline void vlc_meta_AddExtra( vlc_meta_t *m, const char *psz_name, const ...@@ -135,11 +135,8 @@ static inline void vlc_meta_AddExtra( vlc_meta_t *m, const char *psz_name, const
{ {
char *psz_oldvalue = (char *)vlc_dictionary_value_for_key( &m->extra_tags, psz_name ); char *psz_oldvalue = (char *)vlc_dictionary_value_for_key( &m->extra_tags, psz_name );
if( psz_oldvalue != kVLCDictionaryNotFound ) if( psz_oldvalue != kVLCDictionaryNotFound )
{
free( psz_oldvalue );
vlc_dictionary_remove_value_for_key( &m->extra_tags, psz_name, vlc_dictionary_remove_value_for_key( &m->extra_tags, psz_name,
vlc_meta_FreeExtraKey, NULL ); vlc_meta_FreeExtraKey, NULL );
}
vlc_dictionary_insert( &m->extra_tags, psz_name, strdup(psz_value) ); vlc_dictionary_insert( &m->extra_tags, psz_name, strdup(psz_value) );
} }
......
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