Update for alloc_buffer changes.
authorAndy Wingo <wingo@pobox.com>
Mon, 5 Dec 2005 13:04:22 +0000 (13:04 +0000)
committerAndy Wingo <wingo@pobox.com>
Mon, 5 Dec 2005 13:04:22 +0000 (13:04 +0000)
Original commit message from CVS:
2005-12-05  Andy Wingo  <wingo@pobox.com>

* ext/faac/gstfaac.c: (gst_faac_sink_event), (gst_faac_chain):
* ext/faad/gstfaad.c: (gst_faad_chain):
* ext/hermes/gsthermescolorspace.c: (gst_hermes_colorspace_chain):
* ext/lcs/gstcolorspace.c: (gst_colorspace_chain):
* ext/xine/xineinput.c: (gst_xine_input_get):
* gst/colorspace/gstcolorspace.c: (gst_colorspace_chain):
* gst/speed/gstspeed.c: (speed_chain):
* gst/videocrop/gstvideocrop.c: (gst_video_crop_chain): Update for
alloc_buffer changes.

ChangeLog
ext/faac/gstfaac.c
ext/faad/gstfaad.c
ext/hermes/gsthermescolorspace.c
ext/lcs/gstcolorspace.c
ext/xine/xineinput.c
gst/colorspace/gstcolorspace.c
gst/speed/gstspeed.c
gst/videocrop/gstvideocrop.c

index 45c69f2..5e866c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2005-12-05  Andy Wingo  <wingo@pobox.com>
+
+       * ext/faac/gstfaac.c: (gst_faac_sink_event), (gst_faac_chain):
+       * ext/faad/gstfaad.c: (gst_faad_chain):
+       * ext/hermes/gsthermescolorspace.c: (gst_hermes_colorspace_chain):
+       * ext/lcs/gstcolorspace.c: (gst_colorspace_chain):
+       * ext/xine/xineinput.c: (gst_xine_input_get):
+       * gst/colorspace/gstcolorspace.c: (gst_colorspace_chain):
+       * gst/speed/gstspeed.c: (speed_chain):
+       * gst/videocrop/gstvideocrop.c: (gst_video_crop_chain): Update for
+       alloc_buffer changes.
+
 2005-12-02  Tim-Philipp Müller  <tim at centricular dot net>
 
        * ext/Makefile.am:
index f89ad75..efae246 100644 (file)
@@ -434,9 +434,9 @@ gst_faac_sink_event (GstPad * pad, GstEvent * event)
       /* flush first */
       ret = TRUE;
       do {
-        if (gst_pad_alloc_buffer (faac->srcpad, GST_BUFFER_OFFSET_NONE,
-                faac->bytes, GST_PAD_CAPS (faac->srcpad),
-                &outbuf) == GST_FLOW_OK) {
+        if (gst_pad_alloc_buffer_and_set_caps (faac->srcpad,
+                GST_BUFFER_OFFSET_NONE, faac->bytes,
+                GST_PAD_CAPS (faac->srcpad), &outbuf) == GST_FLOW_OK) {
           gint ret_size;
 
           if ((ret_size = faacEncEncode (faac->handle, NULL, 0,
@@ -556,7 +556,8 @@ gst_faac_chain (GstPad * pad, GstBuffer * inbuf)
           (size - in_size) / size);
     }
 
-    result = gst_pad_alloc_buffer (faac->srcpad, GST_BUFFER_OFFSET_NONE,
+    result =
+        gst_pad_alloc_buffer_and_set_caps (faac->srcpad, GST_BUFFER_OFFSET_NONE,
         faac->bytes, GST_PAD_CAPS (faac->srcpad), &outbuf);
     if (result != GST_FLOW_OK)
       goto done;
index 6057469..299e7d1 100644 (file)
@@ -867,7 +867,9 @@ gst_faad_chain (GstPad * pad, GstBuffer * buffer)
         guint num_samples = info.samples / faad->channels;
 
         /* note: info.samples is total samples, not per channel */
-        ret = gst_pad_alloc_buffer (faad->srcpad, 0, bufsize, caps, &outbuf);
+        ret =
+            gst_pad_alloc_buffer_and_set_caps (faad->srcpad, 0, bufsize, caps,
+            &outbuf);
         if (ret != GST_FLOW_OK)
           goto out;
 
index 85de2e4..36d32f1 100644 (file)
@@ -580,7 +580,8 @@ gst_hermes_colorspace_chain (GstPad * pad, GstData * _data)
     g_critical ("input size is smaller than expected");
   }
 
-  outbuf = gst_pad_alloc_buffer (space->srcpad, GST_BUFFER_OFFSET_NONE,
+  outbuf =
+      gst_pad_alloc_buffer_and_set_caps (space->srcpad, GST_BUFFER_OFFSET_NONE,
       space->src_size);
 
   Hermes_ConverterCopy (space->h_handle,
index ab1167a..5e688b7 100644 (file)
@@ -411,7 +411,9 @@ gst_colorspace_chain (GstPad * pad, GstData * _data)
     lcs_format_buffer_size (lcs_converter_get_dest_format (space->converter),
         space->width, space->height, &size);
 
-    outbuf = gst_pad_alloc_buffer (space->srcpad, GST_BUFFER_OFFSET_NONE, size);
+    outbuf =
+        gst_pad_alloc_buffer_and_set_caps (space->srcpad,
+        GST_BUFFER_OFFSET_NONE, size);
 
     lcs_convert_auto (space->converter,
         GST_BUFFER_DATA (buf),
index bdc8419..fb4813a 100644 (file)
@@ -168,7 +168,7 @@ gst_xine_input_get (GstPad * pad)
   }
 
   buf =
-      gst_pad_alloc_buffer (xine->srcpad, GST_BUFFER_OFFSET_NONE,
+      gst_pad_alloc_buffer_and_set_caps (xine->srcpad, GST_BUFFER_OFFSET_NONE,
       xine->blocksize);
   GST_BUFFER_OFFSET (buf) = position;
   real_size =
index 5f2d272..68de043 100644 (file)
@@ -551,7 +551,8 @@ gst_colorspace_chain (GstPad * pad, GstData * _data)
     g_critical ("input size is smaller than expected");
   }
 
-  outbuf = gst_pad_alloc_buffer (space->srcpad, GST_BUFFER_OFFSET_NONE,
+  outbuf =
+      gst_pad_alloc_buffer_and_set_caps (space->srcpad, GST_BUFFER_OFFSET_NONE,
       space->src_size);
 
   converter = gst_colorspace_converters + space->converter_index;
index fb04f35..4e11891 100644 (file)
@@ -686,7 +686,7 @@ speed_chain (GstPad * pad, GstBuffer * in_buf)
       filter->sample_size;
 
   result =
-      gst_pad_alloc_buffer (filter->srcpad, -1, out_size,
+      gst_pad_alloc_buffer_and_set_caps (filter->srcpad, -1, out_size,
       GST_PAD_CAPS (filter->srcpad), &out_buf);
 
   if (result != GST_FLOW_OK) {
index 2af4a76..3fc63d2 100644 (file)
@@ -521,8 +521,9 @@ gst_video_crop_chain (GstPad * pad, GstData * _data)
   g_return_if_fail (GST_BUFFER_SIZE (buffer) >=
       GST_VIDEO_I420_SIZE (video_crop->width, video_crop->height));
 
-  outbuf = gst_pad_alloc_buffer (video_crop->srcpad, GST_BUFFER_OFFSET (buffer),
-      GST_VIDEO_I420_SIZE (new_width, new_height));
+  outbuf =
+      gst_pad_alloc_buffer_and_set_caps (video_crop->srcpad,
+      GST_BUFFER_OFFSET (buffer), GST_VIDEO_I420_SIZE (new_width, new_height));
 
   gst_buffer_stamp (outbuf, buffer);