From 3986174aa90d7e95b2f298ca389668554e1916ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 27 May 2012 00:02:08 +0100 Subject: [PATCH] flv, matroska: don't use GstStructure API on tag lists --- gst/flv/gstflvmux.c | 5 ++--- gst/matroska/matroska-read-common.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c index 2b44a18..a48f318 100644 --- a/gst/flv/gstflvmux.c +++ b/gst/flv/gstflvmux.c @@ -712,7 +712,7 @@ gst_flv_mux_create_metadata (GstFlvMux * mux, gboolean full) script_tag = gst_buffer_append (script_tag, tmp); - n_tags = (tags) ? gst_structure_n_fields ((GstStructure *) tags) : 0; + n_tags = (tags) ? gst_tag_list_n_tags (tags) : 0; _gst_buffer_new_and_alloc (5, &tmp, &data); data[0] = 8; /* ECMA array */ GST_WRITE_UINT32_BE (data + 1, n_tags); @@ -743,8 +743,7 @@ gst_flv_mux_create_metadata (GstFlvMux * mux, gboolean full) tags: for (i = 0; tags && i < n_tags; i++) { - const gchar *tag_name = - gst_structure_nth_field_name ((const GstStructure *) tags, i); + const gchar *tag_name = gst_tag_list_nth_tag_name (tags, i); if (!strcmp (tag_name, GST_TAG_DURATION)) { guint64 dur; diff --git a/gst/matroska/matroska-read-common.c b/gst/matroska/matroska-read-common.c index 146255c..75681ba 100644 --- a/gst/matroska/matroska-read-common.c +++ b/gst/matroska/matroska-read-common.c @@ -707,7 +707,7 @@ gst_matroska_read_common_parse_attachments (GstMatroskaReadCommon * common, } DEBUG_ELEMENT_STOP (common, ebml, "Attachments", ret); - if (gst_structure_n_fields (GST_STRUCTURE (taglist)) > 0) { + if (gst_tag_list_n_tags (taglist) > 0) { GST_DEBUG_OBJECT (common, "Storing attachment tags"); gst_matroska_read_common_found_global_tag (common, el, taglist); } else { -- 2.7.4