[gst-devel] querry : how do i irradicate this warning ?
bisht.sudarshan at gmail.com
Wed Oct 1 08:12:39 CEST 2008
Actually GST_BUFFER_DATA api will return guint8* type of data ,
but here you are attempting to get GstBuffer* type of data that is not
possible , because GstBuffer* is a main buffer structure which has data
pointer in it of guint8* type which holds the actual data of GstBuffer .
So if u do like following it will not give u any warning ,
1 guint8* buf;
2 GstQueue3 *buffer;
3 buf = GST_BUFFER_DATA(buffer->buffer->data);
for more information about GstBuffer , see this
On Wed, Oct 1, 2008 at 11:30 AM, arnabsamanta
<arnabsamanta at tataelxsi.co.in>wrote:
> Am modifying a plugin code.
> Am getting the following warning which i need to fix . I know the
> compiles with warnings but i assume it can create problems at the later
> stage and want to fix it but am absolutely clueless for why am getting
> Am posting the code piece and warning message.
> 1 GstBuffer *buf;
> 2 GstQueue3 *buffer;
> 3 buf = GST_BUFFER_DATA(buffer->buffer);
> where ,
> "GstQueue3" is a structure having an element as " GstBuffer
> The purpose of this line 3 is to copy data from
> buffer->buffer to buf;
> line 3 : warning : assignment from incompatible pointer type
> I know why do we get this warning in C but since am new to GStreamer
> unable to figure it out.
> I have seen many plug-in codes using the macro this way.
> can any body help me ?
> The information contained in this electronic message and any attachments to
> this message are intended for the exclusive use of the addressee(s) and may
> contain proprietary, confidential or privileged information. If you are not
> the intended recipient, you should not disseminate, distribute or copy this
> e-mail. Please notify the sender immediately and destroy all copies of this
> message and any attachments contained in it.
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> Build the coolest Linux based applications with Moblin SDK & win great
> Grand prize is a trip for two to an Open Source event anywhere in the world
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gstreamer-devel