[gst-devel] Two filesrc and adder: switching "location" does not work

Stefan Kost ensonic at hora-obscura.de
Sat Oct 21 18:04:12 CEST 2006


Hi Mathis,

this isn't a trivial problem. Please file this to
http://bugzilla.gnome.org. If you can attach a small example the
demonstrates the issues, it would help to fix the problem.

Stefan


Mathis Hofer wrote:
> Well it seems that pastebin.com is a bit overloaded...
>
> Here is a simplyfied drawing of the pipeline:
>
>
> filesrc ! decodebin ! audioconv ! volume
> \
> adder ! capsfilter ! volume ! alsasink
> /
> filesrc ! decodebin ! audioconv ! volume
>
>
> The two streams before the adder are in musicbin resp. noisebin.
>
> I really hope someone can help me out...
>
> Mathis
>
>
> Mathis Hofer wrote:
>   
>> Hi *
>>
>> I'm working on a therapy software with GStreamer and I want to do the 
>> following:
>> * play a list of music files
>> * mix in some noise files from time to time.
>>
>> My pipeline looks as follows:
>> http://pastebin.com/800087
>>
>> I've attached an event probe to the src-pad of the music- and noisebin. On
>> GST_EVENT_EOS from the musicbin I stop the pipeline, change the 
>> "location" of
>> the filesrc and restart the pipeline. This worked perfectly as long as I 
>> didn't
>> use the adder.
>>
>> With the adder, the first song plays (together with a noise file). But 
>> when I
>> set the second song and restart the pipeline, it won't get played. I 
>> only get a
>> GST_MESSAGE_STATE_CHANGED and a debug line like that:
>> INFO  (0x8106990 - 0:00:13.295196000)           GST_STATES(31023)
>> gstbin.c(1415):gst_bin_recalc_state:<pipeline> bin RETURN is now 1
>>
>> The same issue happens without the noisebin, but I can remove the 
>> adder/capsfilter and it works perfectly.
>>
>> I'm stuck with this problem -- I'm glad if somebody can give me a hint.
>> Is there an example how to use the adder element?
>>
>> Regards,
>> Mathis
>>
>>   
>>     
>
>   





More information about the gstreamer-devel mailing list