Displaying 2 results from an estimated 2 matches for "swfdec_buffer_free_map".
Did you mean:
swfdec_buffer_free_mem
2007 Oct 29
0
libswfdec/swfdec_buffer.c
...m_file() fallback if mmap() fails
This should fix issues with Swfdec on systems with broken or without mmap.
diff --git a/libswfdec/swfdec_buffer.c b/libswfdec/swfdec_buffer.c
index 2c43f9d..7c86316 100644
--- a/libswfdec/swfdec_buffer.c
+++ b/libswfdec/swfdec_buffer.c
@@ -240,9 +240,9 @@ swfdec_buffer_free_mapped (unsigned char *data, gpointer priv)
* @filename: file to read
* @error: return location for a #GError or %NULL
*
- * Tries to create a buffer for the given @filename using a #GMappedFile. If
- * the creation fails, %NULL is returned and @error is set. The error can be
- * any of the error...
2007 Mar 22
0
7 commits - configure.ac doc/swfdec-docs.sgml libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_js_movie.c test/trace
...SwfdecBuffe
swfdec_buffer_ref (buffer);
subbuffer->parent = buffer;
}
+ g_assert (subbuffer->parent->parent == NULL);
subbuffer->data = buffer->data + offset;
subbuffer->length = length;
subbuffer->free = swfdec_buffer_free_subbuffer;
@@ -108,6 +195,17 @@ swfdec_buffer_free_mapped (SwfdecBuffer
g_mapped_file_free (priv);
}
+/**
+ * swfdec_buffer_new_from_file:
+ * @filename: file to read
+ * @error: return location for a #GError or %NULL
+ *
+ * Tries to create a buffer for the given @filename using a #GMappedFile. If
+ * the creation fails, %NULL is returned and @...