From a619d3a8b006c799b58631e0d33a6df4891edd6f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 20 Mar 2012 10:23:47 +0100 Subject: [PATCH] update for memory api changes --- gst-libs/gst/audio/gstaudioencoder.c | 4 ++-- tests/check/libs/audio.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gst-libs/gst/audio/gstaudioencoder.c b/gst-libs/gst/audio/gstaudioencoder.c index 3416f11..1ff5573 100644 --- a/gst-libs/gst/audio/gstaudioencoder.c +++ b/gst-libs/gst/audio/gstaudioencoder.c @@ -784,8 +784,8 @@ gst_audio_encoder_push_buffers (GstAudioEncoder * enc, gboolean force) data = gst_adapter_map (priv->adapter, priv->offset + need); buf = - gst_buffer_new_wrapped_full ((gpointer) data, NULL, priv->offset, - need); + gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, + (gpointer) data, priv->offset + need, priv->offset, need, NULL, NULL); } else if (!priv->drainable) { GST_DEBUG_OBJECT (enc, "non-drainable and no more data"); goto finish; diff --git a/tests/check/libs/audio.c b/tests/check/libs/audio.c index 31aa2da..fa5db6b 100644 --- a/tests/check/libs/audio.c +++ b/tests/check/libs/audio.c @@ -557,8 +557,8 @@ GST_START_TEST (test_multichannel_reorder) for (i = 0; i < G_N_ELEMENTS (tests); i++) { buf = - gst_buffer_new_wrapped_full (tests[i].in, NULL, 0, - sizeof (tests[i].in)); + gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, tests[i].in, + sizeof (tests[i].in), 0, sizeof (tests[i].in), NULL, NULL); if (tests[i].fail) { fail_if (gst_audio_buffer_reorder_channels (buf, GST_AUDIO_FORMAT_S32, -- 2.7.4