summaryrefslogtreecommitdiff
path: root/gst/cutter
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-01-23 17:25:37 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-01-25 12:30:28 +0100
commit583d39dd8d39451d4ef5e0f8cbfdd58b6e69838c (patch)
tree700e50818cd237f29f882314b226af5320aea936 /gst/cutter
parent77d6229a54eb6da76b8396e6f3fdb2d6283253bc (diff)
downloadgstreamer-plugins-good-583d39dd8d39451d4ef5e0f8cbfdd58b6e69838c.tar.gz
update for new memory API
Diffstat (limited to 'gst/cutter')
-rw-r--r--gst/cutter/gstcutter.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gst/cutter/gstcutter.c b/gst/cutter/gstcutter.c
index 2942ff59b..3c700378a 100644
--- a/gst/cutter/gstcutter.c
+++ b/gst/cutter/gstcutter.c
@@ -269,6 +269,7 @@ gst_cutter_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
{
GstFlowReturn ret = GST_FLOW_OK;
GstCutter *filter;
+ GstMapInfo map;
gint16 *in_data;
gint bpf, rate;
gsize in_size;
@@ -287,7 +288,9 @@ gst_cutter_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
bpf = GST_AUDIO_INFO_BPF (&filter->info);
rate = GST_AUDIO_INFO_RATE (&filter->info);
- in_data = gst_buffer_map (buf, &in_size, NULL, GST_MAP_READ);
+ gst_buffer_map (buf, &map, GST_MAP_READ);
+ in_data = (gint16 *) map.data;
+ in_size = map.size;
GST_LOG_OBJECT (filter, "length of prerec buffer: %" GST_TIME_FORMAT,
GST_TIME_ARGS (filter->pre_run_length));
@@ -310,7 +313,7 @@ gst_cutter_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
break;
}
- gst_buffer_unmap (buf, in_data, in_size);
+ gst_buffer_unmap (buf, &map);
filter->silent_prev = filter->silent;