diff options
author | Edgard Lima <edgard.lima@indt.org.br> | 2007-11-02 16:50:42 +0000 |
---|---|---|
committer | Edgard Lima <edgard.lima@indt.org.br> | 2007-11-02 16:50:42 +0000 |
commit | f17824d0d1c0c30815cbcf3bcae7997773e367c5 (patch) | |
tree | 39e0b76ca41fae844d906e42bdab3034a3129215 /ext/metadata/metadataparsexmp.c | |
parent | 05e1fdf681397cc6b3f5ed115cf4e3519272f2b2 (diff) | |
download | gst-plugins-bad-f17824d0d1c0c30815cbcf3bcae7997773e367c5.tar.gz gst-plugins-bad-f17824d0d1c0c30815cbcf3bcae7997773e367c5.tar.bz2 gst-plugins-bad-f17824d0d1c0c30815cbcf3bcae7997773e367c5.zip |
Added support for PNG/XMP. Indentation. And fixed pull mode to parse the file.
Original commit message from CVS:
Added support for PNG/XMP. Indentation. And fixed pull mode to parse the file.
Diffstat (limited to 'ext/metadata/metadataparsexmp.c')
-rw-r--r-- | ext/metadata/metadataparsexmp.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/metadata/metadataparsexmp.c b/ext/metadata/metadataparsexmp.c index 9b583002..aa503d35 100644 --- a/ext/metadata/metadataparsexmp.c +++ b/ext/metadata/metadataparsexmp.c @@ -65,7 +65,7 @@ metadataparse_xmp_tag_list_add (GstTagList * taglist, GstTagMergeMode mode, GST_LOG ("XMP not defined, here I should send just one tag as whole chunk"); - metadataparse_tag_list_add_chunk (taglist, mode, GST_TAG_XMP, adapter); + metadataparse_util_tag_list_add_chunk (taglist, mode, GST_TAG_XMP, adapter); } @@ -111,13 +111,10 @@ metadataparse_xmp_tag_list_add (GstTagList * taglist, GstTagMergeMode mode, } /* add chunk tag */ - metadataparse_tag_list_add_chunk (taglist, mode, GST_TAG_XMP, adapter); + metadataparse_util_tag_list_add_chunk (taglist, mode, GST_TAG_XMP, adapter); buf = gst_adapter_peek (adapter, size); - buf += 29; /* jump "http://ns.adobe.com/xap/1.0/" */ - size -= 29; - xmp = xmp_new (buf, size); if (!xmp) goto done; @@ -128,7 +125,6 @@ metadataparse_xmp_tag_list_add (GstTagList * taglist, GstTagMergeMode mode, xmp_serialize (xmp, xmp_str, XMP_SERIAL_ENCODEUTF8, 2); - GST_LOG (xmp_string_cstr (xmp_str)); done: |