Re: pad error while inspecting a plugin

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: pad error while inspecting a plugin

arnabsamanta
 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.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel