mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
tag: don't use GstStructure API on tag lists
This commit is contained in:
parent
400511b71e
commit
af7dc60479
2 changed files with 2 additions and 3 deletions
|
@ -1572,8 +1572,7 @@ gst_tag_list_from_xmp_buffer (GstBuffer * buffer)
|
|||
g_slice_free (PendingXmpTag, ptag);
|
||||
}
|
||||
|
||||
GST_INFO ("xmp packet parsed, %d entries",
|
||||
gst_structure_n_fields ((GstStructure *) list));
|
||||
GST_INFO ("xmp packet parsed, %d entries", gst_tag_list_n_tags (list));
|
||||
|
||||
/* free resources */
|
||||
i = 0;
|
||||
|
|
|
@ -594,7 +594,7 @@ id3v2_frames_to_tag_list (ID3TagsWorking * work, guint size)
|
|||
work->hdr.frame_data_size -= frame_size;
|
||||
}
|
||||
|
||||
if (gst_structure_n_fields (GST_STRUCTURE (work->tags)) == 0) {
|
||||
if (gst_tag_list_n_tags (work->tags) == 0) {
|
||||
GST_DEBUG ("Could not extract any frames from tag. Broken or empty tag");
|
||||
gst_tag_list_free (work->tags);
|
||||
work->tags = NULL;
|
||||
|
|
Loading…
Reference in a new issue