diff options
Diffstat (limited to 'tests/examples/manual/fakesrc.c')
-rw-r--r-- | tests/examples/manual/fakesrc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/examples/manual/fakesrc.c b/tests/examples/manual/fakesrc.c index eedbe04..58a8458 100644 --- a/tests/examples/manual/fakesrc.c +++ b/tests/examples/manual/fakesrc.c @@ -10,16 +10,15 @@ cb_handoff (GstElement *fakesrc, gpointer user_data) { static gboolean white = FALSE; - gpointer data; - gsize size; + GstMapInfo info; - data = gst_buffer_map (buffer, &size, NULL, GST_MAP_WRITE); + gst_buffer_map (buffer, &info, GST_MAP_WRITE); /* this makes the image black/white */ - memset (data, white ? 0xff : 0x0, size); + memset (info.data, white ? 0xff : 0x0, info.size); white = !white; - gst_buffer_unmap (buffer, data, size); + gst_buffer_unmap (buffer, &info); } gint |