summaryrefslogtreecommitdiff
path: root/gst/gdp/gstgdpdepay.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-01-20 16:11:54 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-09-11 01:54:44 +0100
commit33344dc2b9724408a7440602bd3b6a06a5e951b2 (patch)
tree03bc3c288fdf759a297ec3f87700b75438d0306a /gst/gdp/gstgdpdepay.c
parent0a817d23e68951664d196900a0b4dd0907ff95c7 (diff)
downloadgstreamer-plugins-bad-33344dc2b9724408a7440602bd3b6a06a5e951b2.tar.gz
port to new map API
Diffstat (limited to 'gst/gdp/gstgdpdepay.c')
-rw-r--r--gst/gdp/gstgdpdepay.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/gdp/gstgdpdepay.c b/gst/gdp/gstgdpdepay.c
index f397a3fe4..35a5c1610 100644
--- a/gst/gdp/gstgdpdepay.c
+++ b/gst/gdp/gstgdpdepay.c
@@ -308,11 +308,11 @@ gst_gdp_depay_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
/* now take the payload if there is any */
if (this->payload_length > 0) {
- guint8 *payload;
+ GstMapInfo map;
- payload = gst_buffer_map (buf, NULL, NULL, GST_MAP_WRITE);
- gst_adapter_copy (this->adapter, payload, 0, this->payload_length);
- gst_buffer_unmap (buf, payload, this->payload_length);
+ gst_buffer_map (buf, &map, GST_MAP_WRITE);
+ gst_adapter_copy (this->adapter, map.data, 0, this->payload_length);
+ gst_buffer_unmap (buf, &map);
gst_adapter_flush (this->adapter, this->payload_length);
}