summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-15 13:37:36 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-15 13:37:36 +0100
commit6cbb84038589d8b1086ef6c498c0402f13a83ce4 (patch)
tree6b3c0e0718273325d0a6aaeeecb6a91768d9af81 /ext
parent9f700cc3c4c9b4cc67ea0b44214e22d34cc0dcbb (diff)
downloadgstreamer-plugins-bad-6cbb84038589d8b1086ef6c498c0402f13a83ce4.tar.gz
update for memory api changes
Diffstat (limited to 'ext')
-rw-r--r--ext/faad/gstfaad.c2
-rw-r--r--ext/kate/gstkateenc.c2
-rw-r--r--ext/modplug/gstmodplug.cc2
-rw-r--r--ext/rtmp/gstrtmpsrc.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c
index 94ac0a781..54a14f38e 100644
--- a/ext/faad/gstfaad.c
+++ b/ext/faad/gstfaad.c
@@ -755,7 +755,7 @@ init:
/* note: info.samples is total samples, not per channel */
/* FIXME, add bufferpool and allocator support to the base class */
- outbuf = gst_buffer_new_allocate (NULL, info.samples * faad->bps, 0);
+ outbuf = gst_buffer_new_allocate (NULL, info.samples * faad->bps, NULL);
gst_buffer_fill (outbuf, 0, out, info.samples * faad->bps);
gst_audio_buffer_reorder_channels (outbuf, GST_AUDIO_FORMAT_S16,
faad->channels, faad->aac_positions, faad->gst_positions);
diff --git a/ext/kate/gstkateenc.c b/ext/kate/gstkateenc.c
index db365691c..1e03c3599 100644
--- a/ext/kate/gstkateenc.c
+++ b/ext/kate/gstkateenc.c
@@ -391,7 +391,7 @@ gst_kate_enc_create_buffer (GstKateEnc * ke, kate_packet * kp,
g_return_val_if_fail (kp != NULL, NULL);
g_return_val_if_fail (kp->data != NULL, NULL);
- buffer = gst_buffer_new_allocate (NULL, kp->nbytes, 0);
+ buffer = gst_buffer_new_allocate (NULL, kp->nbytes, NULL);
if (G_UNLIKELY (!buffer)) {
GST_WARNING_OBJECT (ke, "Failed to allocate buffer for %u bytes",
(guint) kp->nbytes);
diff --git a/ext/modplug/gstmodplug.cc b/ext/modplug/gstmodplug.cc
index 5e1d176fe..d849a44e1 100644
--- a/ext/modplug/gstmodplug.cc
+++ b/ext/modplug/gstmodplug.cc
@@ -722,7 +722,7 @@ gst_modplug_loop (GstModPlug * modplug)
}
/* read and output a buffer */
- out = gst_buffer_new_allocate (NULL, modplug->read_bytes, 0);
+ out = gst_buffer_new_allocate (NULL, modplug->read_bytes, NULL);
gst_buffer_map (out, &map, GST_MAP_WRITE);
if (!modplug->mSoundFile->Read (map.data, modplug->read_bytes)) {
diff --git a/ext/rtmp/gstrtmpsrc.c b/ext/rtmp/gstrtmpsrc.c
index 0103cad5e..be94bae7d 100644
--- a/ext/rtmp/gstrtmpsrc.c
+++ b/ext/rtmp/gstrtmpsrc.c
@@ -316,7 +316,7 @@ gst_rtmp_src_create (GstPushSrc * pushsrc, GstBuffer ** buffer)
GST_DEBUG ("reading from %" G_GUINT64_FORMAT
", size %u", src->cur_offset, size);
- buf = gst_buffer_new_allocate (NULL, size, 0);
+ buf = gst_buffer_new_allocate (NULL, size, NULL);
if (G_UNLIKELY (buf == NULL)) {
GST_ERROR_OBJECT (src, "Failed to allocate %u bytes", size);
return GST_FLOW_ERROR;