[gst-devel] querry : how do i irradicate this warning ?

arnabsamanta arnabsamanta at tataelxsi.co.in
Wed Oct 1 08:00:46 CEST 2008


Hi
	Am modifying a plugin code.
	Am getting the following warning which i need to fix . I know the program
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 this.

	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 *buffer"
within.
		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 am
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.




More information about the gstreamer-devel mailing list