mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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:
parent
cf0680017e
commit
f02e52ba3f
1 changed files with 1 additions and 0 deletions
|
@ -1378,6 +1378,7 @@ void
|
|||
gst_tag_list_remove_tag (GstTagList * list, const gchar * tag)
|
||||
{
|
||||
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);
|
||||
|
||||
gst_structure_remove_field (GST_TAG_LIST_STRUCTURE (list), tag);
|
||||
|
|
Loading…
Reference in a new issue