From d5ad427c732f6f398cfc9c1d9d4b1fe4298b543a Mon Sep 17 00:00:00 2001 From: Edgard Lima Date: Fri, 30 Nov 2007 18:30:12 +0000 Subject: 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. --- ext/metadata/metadataparsepng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ext/metadata/metadataparsepng.c') diff --git a/ext/metadata/metadataparsepng.c b/ext/metadata/metadataparsepng.c index d0cfa250..be5bb85b 100644 --- a/ext/metadata/metadataparsepng.c +++ b/ext/metadata/metadataparsepng.c @@ -78,14 +78,11 @@ metadataparse_png_init (PngParseData * png_data, GstAdapter ** exif_adpt, png_data->strip_chunks = strip_chunks; png_data->inject_chunks = inject_chunks; - metadataparse_xmp_init (); } void metadataparse_png_dispose (PngParseData * png_data) { - metadataparse_xmp_dispose (); - png_data->xmp_adapter = NULL; } @@ -213,6 +210,7 @@ metadataparse_png_reading (PngParseData * png_data, guint8 ** buf, memset (&chunk, 0x00, sizeof (MetadataChunk)); chunk.offset_orig = (*buf - step_buf) + offset - 8; /* maker + size */ chunk.size = chunk_size + 12; /* chunk size plus app marker plus crc */ + chunk.type = MD_CHUNK_XMP; metadata_chunk_array_append_sorted (png_data->strip_chunks, &chunk); -- cgit v1.2.1