From e4d6638c22f0dc4208428ac2e4a7781bf387dab9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 22 Feb 2012 02:08:06 +0100 Subject: [PATCH] update for new memory api --- ext/ffmpeg/gstffmpegutils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/ffmpeg/gstffmpegutils.c b/ext/ffmpeg/gstffmpegutils.c index 802c6670cd..5f63a795d8 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; }