summaryrefslogtreecommitdiff
path: root/ext/mplex
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/mplex
parent7aead77649ed8c1531d4e969651452dcb40f8c70 (diff)
downloadgstreamer-plugins-bad-12ee41829c4e1d350adeb898c721724550620260.tar.gz
port some more to new memory API
Fixes #668677.
Diffstat (limited to 'ext/mplex')
-rw-r--r--ext/mplex/gstmplexoutputstream.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/mplex/gstmplexoutputstream.cc b/ext/mplex/gstmplexoutputstream.cc
index 6be1ccad7..8f56540fd 100644
--- a/ext/mplex/gstmplexoutputstream.cc
+++ b/ext/mplex/gstmplexoutputstream.cc
@@ -101,12 +101,9 @@ void
GstMplexOutputStream::Write (guint8 * data, guint len)
{
GstBuffer *buf;
- gpointer bdata;
buf = gst_buffer_new_and_alloc (len);
- bdata = gst_buffer_map (buf, NULL, NULL, GST_MAP_WRITE);
- memcpy (bdata, data, len);
- gst_buffer_unmap (buf, bdata, -1);
+ gst_buffer_fill (buf, 0, data, len);
size += len;
GST_MPLEX_MUTEX_LOCK (mplex);