taglist: add guard to check writability when removing tags from a taglist

https://bugzilla.gnome.org/show_bug.cgi?id=762793
This commit is contained in:
Tim-Philipp Müller 2016-02-28 13:59:48 +00:00
parent cf0680017e
commit f02e52ba3f

View file

@ -1378,6 +1378,7 @@ void
gst_tag_list_remove_tag (GstTagList * list, const gchar * tag) gst_tag_list_remove_tag (GstTagList * list, const gchar * tag)
{ {
g_return_if_fail (GST_IS_TAG_LIST (list)); g_return_if_fail (GST_IS_TAG_LIST (list));
g_return_if_fail (gst_tag_list_is_writable (list));
g_return_if_fail (tag != NULL); g_return_if_fail (tag != NULL);
gst_structure_remove_field (GST_TAG_LIST_STRUCTURE (list), tag); gst_structure_remove_field (GST_TAG_LIST_STRUCTURE (list), tag);