error: lvalue required as left operand of assignment
Tim Müller
tim at centricular.com
Fri Sep 26 01:33:25 PDT 2014
On Fri, 2014-09-26 at 13:48 +0530, Mayank Agarwal wrote:
Hi,
> I have tried appsrc example using gstreamer but i am getting below error:
>
> appsrcexampletwo.c:40:35: error: lvalue required as left operand of assignment
> appsrcexampletwo.c:41:5: warning: implicit declaration of function
> ‘GST_BUFFER_SIZE’ [-Wimplicit-function-declaration]
> appsrcexampletwo.c:41:29: error: lvalue required as left operand of assignment
> appsrcexampletwo.c:42:5: warning: implicit declaration of function
> ‘GST_BUFFER_DATA’ [-Wimplicit-function-declaration]
> appsrcexampletwo.c:42:29: error: lvalue required as left operand of assignment
>
> in the following line of code,i have compiled using gstreamer-1.0
>
> GST_BUFFER_MALLOCDATA(buffer) = ptr;
> GST_BUFFER_SIZE(buffer) = size;
> GST_BUFFER_DATA(buffer) = GST_BUFFER_MALLOCDATA(buffer);
>
I don't know which appsrc example you are trying, but it looks like you
are trying to compile code that was written for the old now-unmaintained
0.10 API version. Here is an example for 1.x:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html#section-spoof-appsrc
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list