summaryrefslogtreecommitdiffstats
path: root/demux/demux.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/demux.c')
-rw-r--r--demux/demux.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c
index ceaa9db79c..63a1c16690 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -713,6 +713,12 @@ char *mp_tags_get_bstr(struct mp_tags *tags, bstr key)
return NULL;
}
+void mp_tags_clear(struct mp_tags *tags)
+{
+ *tags = (struct mp_tags){0};
+ talloc_free_children(tags);
+}
+
int demux_info_add(demuxer_t *demuxer, const char *opt, const char *param)
{
return demux_info_add_bstr(demuxer, bstr0(opt), bstr0(param));