summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-13 19:11:24 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-13 19:11:24 +0100
commit805373666699066d9dcbc77c288933025b65f889 (patch)
tree035c7cfb195b84b96b0d7efd74fc1fa36cf83027 /src
parentae318c94136e2ef8366d632b8aa450f4facee42e (diff)
downloadxine-lib-805373666699066d9dcbc77c288933025b65f889.tar.gz
xine-lib-805373666699066d9dcbc77c288933025b65f889.tar.bz2
Make rmff_dump_header accept a void * parameter for buffer.
Diffstat (limited to 'src')
-rw-r--r--src/input/libreal/rmff.c13
-rw-r--r--src/input/libreal/rmff.h2
2 files changed, 8 insertions, 7 deletions
diff --git a/src/input/libreal/rmff.c b/src/input/libreal/rmff.c
index 159b81ee6..68813ec29 100644
--- a/src/input/libreal/rmff.c
+++ b/src/input/libreal/rmff.c
@@ -35,7 +35,7 @@
* writes header data to a buffer
*/
-static void rmff_dump_fileheader(rmff_fileheader_t *fileheader, char *buffer) {
+static void rmff_dump_fileheader(rmff_fileheader_t *fileheader, uint8_t *buffer) {
if (!fileheader) return;
fileheader->object_id=_X_BE_32(&fileheader->object_id);
@@ -55,7 +55,7 @@ static void rmff_dump_fileheader(rmff_fileheader_t *fileheader, char *buffer) {
fileheader->object_id=_X_BE_32(&fileheader->object_id);
}
-static void rmff_dump_prop(rmff_prop_t *prop, char *buffer) {
+static void rmff_dump_prop(rmff_prop_t *prop, uint8_t *buffer) {
if (!prop) return;
prop->object_id=_X_BE_32(&prop->object_id);
@@ -95,7 +95,7 @@ static void rmff_dump_prop(rmff_prop_t *prop, char *buffer) {
prop->object_id=_X_BE_32(&prop->object_id);
}
-static void rmff_dump_mdpr(rmff_mdpr_t *mdpr, char *buffer) {
+static void rmff_dump_mdpr(rmff_mdpr_t *mdpr, uint8_t *buffer) {
int s1, s2, s3;
@@ -143,7 +143,7 @@ static void rmff_dump_mdpr(rmff_mdpr_t *mdpr, char *buffer) {
}
-static void rmff_dump_cont(rmff_cont_t *cont, char *buffer) {
+static void rmff_dump_cont(rmff_cont_t *cont, uint8_t *buffer) {
int p;
@@ -183,7 +183,7 @@ static void rmff_dump_cont(rmff_cont_t *cont, char *buffer) {
cont->object_id=_X_BE_32(&cont->object_id);
}
-static void rmff_dump_dataheader(rmff_data_t *data, char *buffer) {
+static void rmff_dump_dataheader(rmff_data_t *data, uint8_t *buffer) {
if (!data) return;
data->object_id=_X_BE_32(&data->object_id);
@@ -203,7 +203,8 @@ static void rmff_dump_dataheader(rmff_data_t *data, char *buffer) {
data->object_id=_X_BE_32(&data->object_id);
}
-int rmff_dump_header(rmff_header_t *h, char *buffer, int max) {
+int rmff_dump_header(rmff_header_t *h, void *buf_gen, int max) {
+ uint8_t *buffer = buf_gen;
int written=0;
rmff_mdpr_t **stream=h->streams;
diff --git a/src/input/libreal/rmff.h b/src/input/libreal/rmff.h
index d39942088..5944f9451 100644
--- a/src/input/libreal/rmff.h
+++ b/src/input/libreal/rmff.h
@@ -245,7 +245,7 @@ int rmff_get_header_size(rmff_header_t *h);
/*
* dumps the header <h> to <buffer>. <max> is the size of <buffer>
*/
-int rmff_dump_header(rmff_header_t *h, char *buffer, int max);
+int rmff_dump_header(rmff_header_t *h, void *buffer, int max);
/*
* dumps a packet header