<div dir="ltr"><div>Hi , </div>
<div> 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 . </div>
<div> So if u do like following it will not give u any warning ,</div>
<div> </div>
<div> 1 guint8* buf;<br> 2 GstQueue3 *buffer;<br><br> 3 buf = GST_BUFFER_DATA(buffer->buffer->data);</div>
<div> </div>
<div> for more information about GstBuffer , see this <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer</a> . </div>
<div> </div>
<div> <br> </div>
<div class="gmail_quote">On Wed, Oct 1, 2008 at 11:30 AM, arnabsamanta <span dir="ltr"><<a href="mailto:arnabsamanta@tataelxsi.co.in">arnabsamanta@tataelxsi.co.in</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi<br> Am modifying a plugin code.<br> Am getting the following warning which i need to fix . I know the program<br>
compiles with warnings but i assume it can create problems at the later<br>stage and want to fix it but am absolutely clueless for why am getting this.<br><br> Am posting the code piece and warning message.<br><br> 1 GstBuffer *buf;<br>
2 GstQueue3 *buffer;<br><br> 3 buf = GST_BUFFER_DATA(buffer->buffer);<br><br> where ,<br> "GstQueue3" is a structure having an element as " GstBuffer *buffer"<br>
within.<br> The purpose of this line 3 is to copy data from buffer->buffer to buf;<br><br> line 3 : warning : assignment from incompatible pointer type<br><br> I know why do we get this warning in C but since am new to GStreamer am<br>
unable to figure it out.<br> I have seen many plug-in codes using the macro this way.<br> can any body help me ?<br><br><br><br><br><br><br>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.<br>
<br>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br><a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br></div>