Update for alloc_buffer changes.
[platform/upstream/gst-plugins-good.git] / gst / auparse / gstauparse.c
index f388034..d39c239 100644 (file)
@@ -363,7 +363,7 @@ Samples :
     gst_pad_set_active (auparse->srcpad, TRUE);
     gst_pad_set_caps (auparse->srcpad, tempcaps);
 
-    event = gst_event_new_newsegment (FALSE, 1.0, GST_FORMAT_DEFAULT,
+    event = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_DEFAULT,
         0, GST_CLOCK_TIME_NONE, 0);
 
     gst_pad_push_event (auparse->srcpad, event);
@@ -388,8 +388,9 @@ Samples :
       const guint8 *data = gst_adapter_peek (auparse->adapter, avail);
       GstBuffer *newbuf;
 
-      if ((ret = gst_pad_alloc_buffer (auparse->srcpad, auparse->buffer_offset,
-                  avail, GST_PAD_CAPS (auparse->srcpad),
+      if ((ret =
+              gst_pad_alloc_buffer_and_set_caps (auparse->srcpad,
+                  auparse->buffer_offset, avail, GST_PAD_CAPS (auparse->srcpad),
                   &newbuf)) == GST_FLOW_OK) {
 
         memcpy (GST_BUFFER_DATA (newbuf), data, avail);