[gst-devel] GStreamer-CRITICAL **: gst_bin_add: assertion `GST_IS_ELEMENT (element)' failed

Guilherme grlongo.ireland at gmail.com
Wed May 6 21:17:50 CEST 2009


Even if I use gst_element_get_static_pad I'm unable to specify the pad 
name as the pad was created automatically when I linking the elements with

    gst_element_link_many

;/ Is that possible to retrieve pads even when they are created 
automatically?

Tks!

-------------------

Guilherme Longo
Dept. Eng. da Computação
Unaerp

Linux User - #484927

*Before Asking
http://www.istf.com.br/?page=perguntas

!- I'd rather die on my feet than live on my knees -!



Guilherme wrote:
> I found the gst_pad_add_data_probe();
>
> I might create a function to manipulate data passing through the 
> sink-pad I want.
>
> However, I need to get the name of the pad, but Ive my elements linked 
> with:
>
>    gst_element_link_many (source, filesink, NULL);
>
>
>
>
> Tks!
>
> -------------------
>
> Guilherme Longo
> Dept. Eng. da Computação
> Unaerp
>
> Linux User - #484927
>
> *Before Asking
> http://www.istf.com.br/?page=perguntas
>
> !- I'd rather die on my feet than live on my knees -!
>
>
>
> Guilherme wrote:
>> Tim, I found my problem.
>> I was using a invalid element in a pipeline.
>>
>> The question that still pending is how can I get handle of a buffered 
>> data??
>>
>>    For example a simple situation:
>>
>>       source -> sink    I know that data flows from the source 
>> src-pad to a buffer than to the sink-pad of the sink element.
>>
>>    1 - Am I able to specify size for that buffer? Cause I want to 
>> dump the data in this buffer when its full to another buffer, than I 
>> can realize a operation with that second buffer while the first 
>> receives more data and so on..!
>>
>>    2 - If the first option isn't a valid option, Is that possible to 
>> get handle of data in this first buffer even with the pipeline play. 
>> Cause I need to check the input that to perform a transformation with 
>> the data. FFT (fast fourier transform) to be more exactly. Since 
>> there is no plug-in available to perform that operation I have to do 
>> it separately.
>>
>>    Great Regards;
>>
>> Tks!
>>
>> -------------------
>>
>> Guilherme Longo
>> Dept. Eng. da Computação
>> Unaerp
>>
>> Linux User - #484927
>>
>> *Before Asking
>> http://www.istf.com.br/?page=perguntas
>>
>> !- I'd rather die on my feet than live on my knees -!
>>
>>
>>
>> Tim-Philipp Müller wrote:
>>> On Wed, 2009-05-06 at 14:42 -0300, Guilherme wrote:
>>>  
>>>>     At the moment my pipeline is like that:
>>>>          gst_bin_add_many (GST_BIN (pipeline), source, filesink, 
>>>> NULL);
>>>>     gst_element_link_many (source, filesink, NULL);
>>>>
>>>> How can I implement such a feature? I tried inserting the buffer 
>>>> directly in the pipeline but a get the following error:
>>>>
>>>>     (buffer_analysis:3559): GStreamer-CRITICAL **: gst_bin_add: 
>>>> assertion `GST_IS_ELEMENT (element)' failed
>>>>     
>>>
>>> This usually means that either source or filesink or both are NULL or
>>> uninitialised bogus pointers. You can run your code in gdb with the
>>> G_DEBUG=fatal_warnings environment variable set, to make it stop at the
>>> warning (so you can investigate).
>>>
>>> If you post your full code, someone might be able to spot the problem.
>>>
>>> Cheers
>>>  -Tim
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------ 
>>>
>>> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! 
>>> Your
>>> production scanning environment may not be a perfect world - but 
>>> thanks to
>>> Kodak, there's a perfect scanner to get the job done! With the NEW 
>>> KODAK i700
>>> Series Scanner you'll get full speed at 300 dpi even with all image 
>>> processing features enabled. http://p.sf.net/sfu/kodak-com
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>
>>>   
>>
>




More information about the gstreamer-devel mailing list