mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 09:08:14 +00:00
update for memory api changes
This commit is contained in:
parent
dfb244fb50
commit
a619d3a8b0
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue