summaryrefslogtreecommitdiff
path: root/gst/avi/gstavimux.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/avi/gstavimux.c')
-rw-r--r--gst/avi/gstavimux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c
index 6786d518c..68d177c26 100644
--- a/gst/avi/gstavimux.c
+++ b/gst/avi/gstavimux.c
@@ -1557,7 +1557,7 @@ gst_avi_mux_write_index (GstAviMux * avimux)
data = (guint8 *) avimux->idx;
avimux->idx = NULL; /* will be free()'ed by gst_buffer_unref() */
- gst_buffer_take_memory (buffer, -1,
+ gst_buffer_append_memory (buffer,
gst_memory_new_wrapped (0, data, size, 0, size, data, g_free));
avimux->total_data += size + 8;