diff options
author | Edgard Lima <edgard.lima@indt.org.br> | 2008-01-30 16:05:24 +0000 |
---|---|---|
committer | Edgard Lima <edgard.lima@indt.org.br> | 2008-01-30 16:05:24 +0000 |
commit | b043a6f5e1c3b69651104c4b0719f4e0d348b04f (patch) | |
tree | c27f2d267004c3e310e4618d3f67cbe52fa5f46e /ext/metadata/metadatamuxjpeg.c | |
parent | 568edc33d0764f7186cbed8d9989810bbfb97dce (diff) | |
download | gst-plugins-bad-b043a6f5e1c3b69651104c4b0719f4e0d348b04f.tar.gz gst-plugins-bad-b043a6f5e1c3b69651104c4b0719f4e0d348b04f.tar.bz2 gst-plugins-bad-b043a6f5e1c3b69651104c4b0719f4e0d348b04f.zip |
Add documentation. Speed up a bit png muxer. Fix xmp muxer.
Original commit message from CVS:
Add documentation. Speed up a bit png muxer. Fix xmp muxer.
Diffstat (limited to 'ext/metadata/metadatamuxjpeg.c')
-rw-r--r-- | ext/metadata/metadatamuxjpeg.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/metadata/metadatamuxjpeg.c b/ext/metadata/metadatamuxjpeg.c index d8aa2cdd..4e74a209 100644 --- a/ext/metadata/metadatamuxjpeg.c +++ b/ext/metadata/metadatamuxjpeg.c @@ -264,10 +264,10 @@ done: void metadatamux_jpeg_lazy_update (JpegMuxData * jpeg_data) { - gsize i; + gint i = 0; gboolean has_exif = FALSE; - for (i = 0; i < jpeg_data->inject_chunks->len; ++i) { + while (i < jpeg_data->inject_chunks->len) { if (jpeg_data->inject_chunks->chunk[i].size > 0 && jpeg_data->inject_chunks->chunk[i].data) { switch (jpeg_data->inject_chunks->chunk[i].type) { @@ -285,7 +285,8 @@ metadatamux_jpeg_lazy_update (JpegMuxData * jpeg_data) 0, 0xFF, 0xED); } else { GST_ERROR ("Invalid IPTC chunk\n"); - /* FIXME: remove entry from list */ + metadata_chunk_array_remove_by_index (jpeg_data->inject_chunks, i); + continue; } } #endif /* #ifdef HAVE_IPTC */ @@ -302,7 +303,9 @@ metadatamux_jpeg_lazy_update (JpegMuxData * jpeg_data) break; } } + ++i; } + if (!has_exif) { /* EXIF not injected so not strip JFIF anymore */ metadata_chunk_array_clear (jpeg_data->strip_chunks); |