tag: don't use GstStructure API on tag lists

This commit is contained in:
Tim-Philipp Müller 2012-05-26 19:56:30 +01:00
parent 400511b71e
commit af7dc60479
2 changed files with 2 additions and 3 deletions

View file

@ -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;

View file

@ -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;