GNOME Bugzilla – Bug 474931
factore out some code in the metadata consumer
Last modified: 2007-09-10 03:13:05 UTC
From bug #474710, I said: "I also think the code should be factored out to a helper function, because it's the same bunch over and over again, only changing the destination chunk and the state."
Created attachment 95186 [details] [review] factore out the code This patch factores out the code to a small helper function. I suspect that the code for the IPTC case is buggy, because it doesn't increase the iterator to be after the read buffer when it has read the data in one block. If that code is actually wrong, then it could use the helper function I added with this patch. This patch introduces as well the fix to the crasher in #474710.
No need to care about IPTC at this point. The patch is ok. Go on and commit. Thanks!
Thanks Lucas. Committed in trunk (rev. 4072). 2007-09-09 Claudio Saavedra <csaavedra@alumnos.utalca.cl> * src/eog-metadata-reader.c: (+eog_metadata_reader_get_next_block), (eog_metadata_reader_consume): Factore out some common code for the different metadata sources in the matadata consumer. Fixes bug #474931.