Commit d8085327 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

media_item: Remove totaulogy

media_item_set_meta is being passed a MEDIA_ITEM_META, which is
guaranteed to be in its own range.
parent 33b67021
......@@ -88,8 +88,6 @@ int
media_item_set_meta(media_item *p_mi, enum MEDIA_ITEM_META i_meta,
const char *psz_meta)
{
if (i_meta < 0 || i_meta >= MEDIA_ITEM_META_COUNT)
return -1;
free(p_mi->psz_metas[i_meta]);
p_mi->psz_metas[i_meta] = psz_meta ? strdup(psz_meta) : NULL;
return p_mi->psz_metas[i_meta] ? 0 : -1;
......
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