error: lvalue required as left operand of assignment

Mayank Agarwal mayank77fromindia at gmail.com
Fri Sep 26 01:18:21 PDT 2014


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);

Regards,
Mayank


More information about the gstreamer-devel mailing list