[gst-devel] pad error while inspecting a plugin
arnabsamanta
arnabsamanta at tataelxsi.co.in
Wed Oct 8 11:47:17 CEST 2008
Hi Manish,
Thanks for your reply. well i cross checked.
I have only one member in class _GstQueue3Class , thats GstElementClass
parent_class. Is it what you pointed out ?
Any way , the error is gone and so are the other errors.
In _init( ), i have used,
GstElementClass *klass = GST_ELEMENT_GET_CLASS (queue3);
//queue3->srcpad = gst_pad_new_from_template ((void *)&src_factory,
"src" );
queue3->srcpad = gst_pad_new_from_template
(gst_element_class_get_pad_template (klass, "src"), "src");
And hence the pad is created and other errors are gone. :-)
However, i am not sure what miracle these two lines have done.
Am yet to figure it out. Please help me if any body knows.
the commented line is the way gstqueue.c , gstqueue2.c and several other
plug ins have implemented .
Regards,
~Arnab
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