summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-02-22 02:08:06 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-02-22 02:08:06 +0100
commite4d6638c22f0dc4208428ac2e4a7781bf387dab9 (patch)
tree857cc3c1fe39b6e05a96e37d7444d7e77e126429
parent05a44b7ac62f01510296a960896f01dbeec3ef76 (diff)
update for new memory api
-rw-r--r--ext/ffmpeg/gstffmpegutils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/ffmpeg/gstffmpegutils.c b/ext/ffmpeg/gstffmpegutils.c
index 802c667..5f63a79 100644
--- a/ext/ffmpeg/gstffmpegutils.c
+++ b/ext/ffmpeg/gstffmpegutils.c
@@ -437,10 +437,13 @@ GstBuffer *
new_aligned_buffer (gint size)
{
GstBuffer *buf;
+ guint8 *data;
+
+ data = av_malloc (size);
buf = gst_buffer_new ();
gst_buffer_take_memory (buf, -1,
- gst_memory_new_wrapped (0, av_malloc (size), av_free, size, 0, size));
+ gst_memory_new_wrapped (0, data, size, 0, size, data, av_free));
return buf;
}