diff options
author | Edgard Lima <edgard.lima@indt.org.br> | 2007-11-30 18:30:12 +0000 |
---|---|---|
committer | Edgard Lima <edgard.lima@indt.org.br> | 2007-11-30 18:30:12 +0000 |
commit | d5ad427c732f6f398cfc9c1d9d4b1fe4298b543a (patch) | |
tree | 50015ea2d650557ef931bfc8c5ce2c1640a6ab26 /ext/metadata/metadataiptc.c | |
parent | ddd4af604a9cb37ba81d4ddf9b82625aa5817de0 (diff) | |
download | gst-plugins-bad-d5ad427c732f6f398cfc9c1d9d4b1fe4298b543a.tar.gz gst-plugins-bad-d5ad427c732f6f398cfc9c1d9d4b1fe4298b543a.tar.bz2 gst-plugins-bad-d5ad427c732f6f398cfc9c1d9d4b1fe4298b543a.zip |
Muxer writes (in jpeg only) whole EXIF and XMP chunks sent as tags.
Original commit message from CVS:
Muxer writes (in jpeg only) whole EXIF and XMP chunks sent as tags.
Diffstat (limited to 'ext/metadata/metadataiptc.c')
-rw-r--r-- | ext/metadata/metadataiptc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/metadata/metadataiptc.c b/ext/metadata/metadataiptc.c index 8c0507a4..7af879ef 100644 --- a/ext/metadata/metadataiptc.c +++ b/ext/metadata/metadataiptc.c @@ -65,7 +65,7 @@ metadataparse_iptc_tag_list_add (GstTagList * taglist, GstTagMergeMode mode, void -metadatamux_iptc_create_chunk_from_tag_list (GstAdapter ** adapter, +metadatamux_iptc_create_chunk_from_tag_list (guint8 ** buf, guint32 * size, GstTagList * taglist) { /* do nothing */ @@ -132,16 +132,16 @@ iptc_data_foreach_dataset_func (IptcDataSet * dataset, void *user_data) } void -metadatamux_iptc_create_chunk_from_tag_list (GstAdapter ** adapter, +metadatamux_iptc_create_chunk_from_tag_list (guint8 ** buf, guint32 * size, GstTagList * taglist) { - if (adapter == NULL) + if (!(buf && size)) goto done; - - if (*adapter) - g_object_unref (*adapter); - - *adapter = gst_adapter_new (); + if (*buf) { + g_free (*buf); + *buf = NULL; + } + *size = 0; done: |