summaryrefslogtreecommitdiff
path: root/gst/videoparsers/gsth263parse.c
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-01-25 16:20:41 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-01-25 16:22:09 +0100
commit9dc7571c75b9e1a7233e3db4e7147c30752e7513 (patch)
treea263f6d89766f28a5ddd14a78514a0bdebcd37e7 /gst/videoparsers/gsth263parse.c
parent21073e98cf0c939318d90cc1b07eecd308e70732 (diff)
downloadgstreamer-plugins-bad-9dc7571c75b9e1a7233e3db4e7147c30752e7513.tar.gz
port some more to new memory API
Diffstat (limited to 'gst/videoparsers/gsth263parse.c')
-rw-r--r--gst/videoparsers/gsth263parse.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gst/videoparsers/gsth263parse.c b/gst/videoparsers/gsth263parse.c
index 5b369accb..bff68661b 100644
--- a/gst/videoparsers/gsth263parse.c
+++ b/gst/videoparsers/gsth263parse.c
@@ -151,13 +151,12 @@ gst_h263_parse_sink_event (GstBaseParse * parse, GstEvent * event)
static guint
find_psc (GstBuffer * buffer, guint skip)
{
- guint8 *buf_data;
- gsize buf_size;
+ GstMapInfo map;
GstByteReader br;
guint psc_pos = -1, psc;
- buf_data = gst_buffer_map (buffer, &buf_size, NULL, GST_MAP_READ);
- gst_byte_reader_init (&br, buf_data, buf_size);
+ gst_buffer_map (buffer, &map, GST_MAP_READ);
+ gst_byte_reader_init (&br, map.data, map.size);
if (!gst_byte_reader_set_pos (&br, skip))
goto out;
@@ -175,7 +174,7 @@ find_psc (GstBuffer * buffer, guint skip)
}
out:
- gst_buffer_unmap (buffer, buf_data, buf_size);
+ gst_buffer_unmap (buffer, &map);
return psc_pos;
}