[gst-devel] querry: pad error while inspecting a plugin

ved kpl ved.kpl at gmail.com
Wed Oct 8 08:58:05 CEST 2008


Hi,

You can refer to any existing plugins. eg gstqueue.c in
gstreamer/plugins/elements

Ved

On Wed, Oct 8, 2008 at 12:09 PM, arnabsamanta
<arnabsamanta at tataelxsi.co.in> wrote:
> Hi ved,
>
>        Thanks for the reply.
>        I have included the following lines in my _init() already. Please tell me
> if i need to add any thing more .
>
>        static void gst_queue3_init (GstQueue3 *queue3, GstQueue3Class * gclass)
>        {
>
>                queue3->srcpad = gst_pad_new_from_template ((void *)&src_factory, "src" );
>                .
>                .
>                .
>                .
>
>                gst_element_add_pad (GST_ELEMENT (queue3), queue3->srcpad);
>        }
>
>        And i have figured out the rason for the segmantation error.
>        the macro assertion : GST_IS_PAD(pad) is failing in all the functions . My
> understanding is its due to the fact that       the pad is not created. but am
> not sure as i dint get any documentataion of the macro.
>        So is my understanding correct ? if wrong , then please correct me.
>
>  Regards,
>        ~Arnab
>
>
>
>
>
> -----Original Message-----
> From: ved kpl [mailto:ved.kpl at gmail.com]
> Sent: Wednesday, October 08, 2008 11:29 AM
> To: arnabsamanta at tataelxsi.co.in; Discussion of the development of
> GStreamer
> Subject: Re: [gst-devel] querry: pad error while inspecting a plugin
>
>
> Hi
>
> You are creating the pad dynamically , then. If you want the pads to
> be "ALWAYS" ,
> create them in your *queue3_init().
>
> Ved
>
> On Wed, Oct 8, 2008 at 10:11 AM, arnabsamanta
> <arnabsamanta at tataelxsi.co.in> wrote:
>> Hi ,
>>        I have written a plug-in and have successfully installed it in the
>> gstreamer package available in my system.
>>        when am running gst-inspect , am able to view my plugin queue3.
>>        when am running the command
>>                         gst-inspect queue3
>>        I am getting the following displayed
>>
>>        .
>>        .
>>        .
>>
>>        Pad Templates:
>>        SRC template: 'src'
>>        Availability: Always
>>        Capabilities:
>>      ANY
>>
>>
>>        Element Flags:
>>        no flags set
>>
>>        Element Implementation:
>>        Has change_state() function: gst_queue3_change_state
>>        Has custom save_thyself() function: gst_element_save_thyself
>>        Has custom restore_thyself() function: gst_element_restore_thyself
>>
>>        Element has no clocking capabilities.
>>        Element has no indexing capabilities.
>>        Element has no URI handling capabilities.
>>
>>        Pads:
>>                none
>>
>>        .
>>        .
>>        .
>>
>>        My concern is why the src pad is not shown here ?
>>        to my understandings its not created. If so what am i supposed to
> do to
>> irradicate this error ?
>>
>>
>>        and the last error am getting  is
>>                 (gst-inspect-0.10:15886): GLib-GObject-WARNING **: invalid
> class cast
>> from (NULL) pointer to `GObject'
>>                        Segmentation fault
>>
>>        Can some one pleasse tell me what is the problem and how can i
> solve it ?
>>
>>  Thanks and 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
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>
>
> 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