diff options
Diffstat (limited to 'common/tags.c')
-rw-r--r-- | common/tags.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/tags.c b/common/tags.c index f7e85ace3d..43f557dd6c 100644 --- a/common/tags.c +++ b/common/tags.c @@ -142,3 +142,10 @@ void mp_tags_copy_from_av_dictionary(struct mp_tags *tags, while ((entry = av_dict_get(av_dict, "", entry, AV_DICT_IGNORE_SUFFIX))) mp_tags_set_str(tags, entry->key, entry->value); } + +void mp_tags_move_from_av_dictionary(struct mp_tags *tags, + struct AVDictionary **av_dict_ptr) +{ + mp_tags_copy_from_av_dictionary(tags, *av_dict_ptr); + av_dict_free(av_dict_ptr); +} |