compilation errors on GstMapInfo

Tim-Philipp Müller t.i.m at zen.co.uk
Fri Sep 21 02:04:00 PDT 2012


On Fri, 2012-09-21 at 13:27 +0530, somanath sahoo wrote:

Hi,


> somanath at somanath:~/som_streaming/som_gst_example$ gcc
> test-buffer-pad.c -o test-buffer-pad `pkg-config --cflags --libs
> gstreamer-0.10`

GstMapInfo is gstreamer-1.0 API (0.11.9x = 1.0).

In 0.10 you could just do GST_BUFFER_DATA(buffer) and
GST_BUFFER_SIZE(buffer).

> test-buffer-pad.c: In function ‘cb_have_data’:
> test-buffer-pad.c:6:2: error: unknown type name ‘GstMapInfo’
> test-buffer-pad.c:9:33: error: ‘GST_MAP_WRITE’ undeclared (first use
> in this function)
> test-buffer-pad.c:9:33: note: each undeclared identifier is reported
> only once for each function it appears in
> test-buffer-pad.c:11:12: error: request for member ‘data’ in something
> not a structure or union
> --------
> I have included gst/gst.h as per example. I have googled a lot on this
> error. But i am little unclear about the root cause.
> 
> Could any one please let me know some pointers about this above error
> so that i can able to resolve this ?

Cheers
 -Tim




More information about the gstreamer-devel mailing list