update for new memory api
[platform/upstream/gstreamer.git] / tests / examples / app / appsrc-stream2.c
index b92259e..618fd11 100644 (file)
@@ -98,7 +98,7 @@ feed_data (GstElement * appsrc, guint size, App * app)
 
   gst_buffer_take_memory (buffer, -1,
       gst_memory_new_wrapped (GST_MEMORY_FLAG_READONLY,
-          app->data, NULL, app->length, app->offset, len));
+          app->data, app->length, app->offset, len, NULL, NULL));
 
   GST_DEBUG ("feed buffer %p, offset %" G_GUINT64_FORMAT "-%u", buffer,
       app->offset, len);