<div dir="ltr"><div>Hi , </div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Actually GST_BUFFER_DATA api will return guint8* type of data , but&nbsp;here&nbsp;you&nbsp;are attempting to get GstBuffer* type of&nbsp;data&nbsp;that is not possible , because GstBuffer* is a&nbsp;main buffer structure which has data pointer in it of guint8* type which holds the actual data of GstBuffer&nbsp;.&nbsp;</div>

<div>&nbsp; So if u do like following it will not give u any warning ,</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;guint8* buf;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2 &nbsp; &nbsp; &nbsp; GstQueue3 *buffer;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3 &nbsp; &nbsp; &nbsp; buf = GST_BUFFER_DATA(buffer-&gt;buffer-&gt;data);</div>
<div>&nbsp;</div>
<div>&nbsp;for more information about GstBuffer&nbsp;, see this &nbsp;&nbsp;<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>&nbsp;.&nbsp;&nbsp;&nbsp;&nbsp; </div>

<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;</div>
<div class="gmail_quote">On Wed, Oct 1, 2008 at 11:30 AM, arnabsamanta <span dir="ltr">&lt;<a href="mailto:arnabsamanta@tataelxsi.co.in">arnabsamanta@tataelxsi.co.in</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi<br>&nbsp; &nbsp; &nbsp; &nbsp;Am modifying a plugin code.<br>&nbsp; &nbsp; &nbsp; &nbsp;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>&nbsp; &nbsp; &nbsp; &nbsp;Am posting the code piece and warning message.<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; GstBuffer *buf;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2 &nbsp; &nbsp; &nbsp; GstQueue3 *buffer;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3 &nbsp; &nbsp; &nbsp; buf = GST_BUFFER_DATA(buffer-&gt;buffer);<br><br>&nbsp; &nbsp; &nbsp; &nbsp;where ,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;GstQueue3&quot; is a structure having an element as &quot; GstBuffer *buffer&quot;<br>
within.<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;The purpose of this line 3 is to copy data from buffer-&gt;buffer to buf;<br><br>&nbsp; &nbsp; &nbsp; &nbsp;line 3 : warning : assignment from incompatible pointer type<br><br>&nbsp; &nbsp; &nbsp; &nbsp;I know why do we get this warning in C but since am new to GStreamer am<br>
unable to figure it out.<br>&nbsp; &nbsp; &nbsp; &nbsp;I have seen many plug-in codes using the macro this way.<br>&nbsp; &nbsp; &nbsp; &nbsp;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&#39;s challenge<br>Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;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>