From 0d4d5a57daaab131c78c1346cf4ce27d5423b46c Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 10 Mar 2010 19:17:42 +0100 Subject: [PATCH] Revert "registry: remove unused function" Turns out the function is not unused, but was in an #ifdef WIN32 section. Whoops. This reverts commit 57d5db424c68ab5a61f33ce36ce0179eb30251ac. --- gst/gstregistrybinary.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gst/gstregistrybinary.c b/gst/gstregistrybinary.c index 1c20414..e7c41cf 100644 --- a/gst/gstregistrybinary.c +++ b/gst/gstregistrybinary.c @@ -106,6 +106,18 @@ gst_registry_binary_cache_init (GstRegistry * registry, const char *location) return cache; } +static int +gst_registry_binary_cache_write (BinaryRegistryCache * cache, + unsigned long offset, const void *data, int length) +{ + cache->len = MAX (offset + length, cache->len); + cache->mem = g_realloc (cache->mem, cache->len); + + memcpy (cache->mem + offset, data, length); + + return length; +} + static gboolean gst_registry_binary_cache_finish (BinaryRegistryCache * cache, gboolean success) { -- 2.7.4