GNOME Bugzilla – Bug 560399
Unnecessary CRC checksum for binary registry cache
Last modified: 2008-11-12 10:38:19 UTC
Please describe the problem: Following the discussion on gstreamer-devel "On the plugin cache" the CRC checksum in the binary registry cache is not necessary and should thus be removed. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
2008-11-12 Sebastian Dröge <sebastian.droege@collabora.co.uk> * gst/gstregistrybinary.c: (gst_registry_binary_write_chunk), (gst_registry_binary_initialize_magic), (gst_registry_binary_write_cache), (gst_registry_binary_check_magic): * gst/gstregistrybinary.h: Don't write and check a CRC for the binary registry file. It's guaranteed that the registry is completely written (it's first written to a temporary file and then moved) and if the registry was corrupted by some hardware failure we would have bigger problems. This saves some milliseconds for reading/writing the registry. Fixes bug #560399.