diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-01-20 16:11:54 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-01-25 12:30:53 +0100 |
commit | fcdc385aa1bf68bd64e1f17d59f78d6fc13b1eaf (patch) | |
tree | 05a0fa4f91ccc73c3c2566737a6edc0876ad9868 /gst/audiotestsrc | |
parent | 130a8335a068ff769fcfdbe827a958feda18b141 (diff) | |
download | gstreamer-plugins-base-fcdc385aa1bf68bd64e1f17d59f78d6fc13b1eaf.tar.gz |
port to new map API
Diffstat (limited to 'gst/audiotestsrc')
-rw-r--r-- | gst/audiotestsrc/gstaudiotestsrc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/audiotestsrc/gstaudiotestsrc.c b/gst/audiotestsrc/gstaudiotestsrc.c index 1a900bed4..822af1f63 100644 --- a/gst/audiotestsrc/gstaudiotestsrc.c +++ b/gst/audiotestsrc/gstaudiotestsrc.c @@ -1113,7 +1113,7 @@ gst_audio_test_src_fill (GstBaseSrc * basesrc, guint64 offset, gint64 next_sample, next_byte; gint bytes, samples; GstElementClass *eclass; - guint8 *data; + GstMapInfo map; gint samplerate, bpf; src = GST_AUDIO_TEST_SRC (basesrc); @@ -1206,9 +1206,9 @@ gst_audio_test_src_fill (GstBaseSrc * basesrc, guint64 offset, src->generate_samples_per_buffer, GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buffer))); - data = gst_buffer_map (buffer, NULL, NULL, GST_MAP_WRITE); - src->process (src, data); - gst_buffer_unmap (buffer, data, bytes); + gst_buffer_map (buffer, &map, GST_MAP_WRITE); + src->process (src, map.data); + gst_buffer_unmap (buffer, &map); if (G_UNLIKELY ((src->wave == GST_AUDIO_TEST_SRC_WAVE_SILENCE) || (src->volume == 0.0))) { |