tag: don't use GstStructure API on tag lists
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 26 May 2012 18:56:30 +0000 (19:56 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 26 May 2012 18:56:30 +0000 (19:56 +0100)
gst-libs/gst/tag/gstxmptag.c
gst-libs/gst/tag/id3v2.c

index 8bbaf3b..dd8e66b 100644 (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;
index aaf7fb8..8775902 100644 (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;