summaryrefslogtreecommitdiff
path: root/ext/vp8/gstvp8enc.c
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-01-25 18:49:58 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-01-25 18:50:40 +0100
commit12ee41829c4e1d350adeb898c721724550620260 (patch)
treefa2f03da024198b1207562f09e82c96f2858ac8b /ext/vp8/gstvp8enc.c
parent7aead77649ed8c1531d4e969651452dcb40f8c70 (diff)
downloadgstreamer-plugins-bad-12ee41829c4e1d350adeb898c721724550620260.tar.gz
port some more to new memory API
Fixes #668677.
Diffstat (limited to 'ext/vp8/gstvp8enc.c')
-rw-r--r--ext/vp8/gstvp8enc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/vp8/gstvp8enc.c b/ext/vp8/gstvp8enc.c
index ea92a76ce..0652ffd00 100644
--- a/ext/vp8/gstvp8enc.c
+++ b/ext/vp8/gstvp8enc.c
@@ -854,7 +854,7 @@ gst_vp8_enc_set_format (GstBaseVideoEncoder * base_video_encoder,
const GstTagList *iface_tags;
GValue array = { 0, };
GValue value = { 0, };
- gsize size;
+ GstMapInfo map;
s = gst_caps_get_structure (caps, 0);
/* put buffers in a fixed list */
@@ -863,7 +863,8 @@ gst_vp8_enc_set_format (GstBaseVideoEncoder * base_video_encoder,
/* Create Ogg stream-info */
stream_hdr = gst_buffer_new_and_alloc (26);
- data = gst_buffer_map (stream_hdr, &size, NULL, GST_MAP_WRITE);
+ gst_buffer_map (stream_hdr, &map, GST_MAP_WRITE);
+ data = map.data;
GST_WRITE_UINT8 (data, 0x4F);
GST_WRITE_UINT32_BE (data + 1, 0x56503830); /* "VP80" */
@@ -877,7 +878,7 @@ gst_vp8_enc_set_format (GstBaseVideoEncoder * base_video_encoder,
GST_WRITE_UINT32_BE (data + 18, info->fps_n);
GST_WRITE_UINT32_BE (data + 22, info->fps_d);
- gst_buffer_unmap (stream_hdr, data, size);
+ gst_buffer_unmap (stream_hdr, &map);
GST_BUFFER_FLAG_SET (stream_hdr, GST_BUFFER_FLAG_IN_CAPS);
gst_value_set_buffer (&value, stream_hdr);