diff options
author | Edgard Lima <edgard.lima@indt.org.br> | 2007-11-28 14:03:35 +0000 |
---|---|---|
committer | Edgard Lima <edgard.lima@indt.org.br> | 2007-11-28 14:03:35 +0000 |
commit | 14da2ceef57b29bafd0cb9ba0d37ebd5c1571587 (patch) | |
tree | b76f11b33c1513de81255fdd4ce0daa25184f7e5 /ext/metadata/metadataxmp.c | |
parent | c1e6c76cdb550c564f58e84c66b3e993ea36227d (diff) | |
download | gst-plugins-bad-14da2ceef57b29bafd0cb9ba0d37ebd5c1571587.tar.gz gst-plugins-bad-14da2ceef57b29bafd0cb9ba0d37ebd5c1571587.tar.bz2 gst-plugins-bad-14da2ceef57b29bafd0cb9ba0d37ebd5c1571587.zip |
Sending make and model individual tags and muxer now links fine.
Original commit message from CVS:
Sending make and model individual tags and muxer now links fine.
Diffstat (limited to 'ext/metadata/metadataxmp.c')
-rw-r--r-- | ext/metadata/metadataxmp.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/ext/metadata/metadataxmp.c b/ext/metadata/metadataxmp.c index 900a454a..b417a935 100644 --- a/ext/metadata/metadataxmp.c +++ b/ext/metadata/metadataxmp.c @@ -52,12 +52,13 @@ GST_DEBUG_CATEGORY (gst_metadata_xmp_debug); void metadataparse_xmp_tag_list_add (GstTagList * taglist, GstTagMergeMode mode, - GstAdapter * adapter) + GstAdapter * adapter, MetadataTagMapping mapping) { GST_LOG ("XMP not defined, here I should send just one tag as whole chunk"); - metadataparse_util_tag_list_add_chunk (taglist, mode, GST_TAG_XMP, adapter); + if (mapping & METADATA_TAG_MAP_WHOLECHUNK) + metadataparse_util_tag_list_add_chunk (taglist, mode, GST_TAG_XMP, adapter); } @@ -109,7 +110,7 @@ metadataparse_xmp_dispose (void) void metadataparse_xmp_tag_list_add (GstTagList * taglist, GstTagMergeMode mode, - GstAdapter * adapter) + GstAdapter * adapter, MetadataTagMapping mapping) { const guint8 *buf; guint32 size; @@ -121,7 +122,11 @@ metadataparse_xmp_tag_list_add (GstTagList * taglist, GstTagMergeMode mode, } /* add chunk tag */ - metadataparse_util_tag_list_add_chunk (taglist, mode, GST_TAG_XMP, adapter); + if (mapping & METADATA_TAG_MAP_WHOLECHUNK) + metadataparse_util_tag_list_add_chunk (taglist, mode, GST_TAG_XMP, adapter); + + if (!(mapping & METADATA_TAG_MAP_INDIVIDUALS)) + goto done; buf = gst_adapter_peek (adapter, size); |