mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
flv, matroska: don't use GstStructure API on tag lists
This commit is contained in:
parent
923be8a85b
commit
3986174aa9
2 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue