<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Thanks a lot that worked. First i only add filesrc and decodebin element for the first file. In my pad_added handler i link the pad and add the elements for the next file and so on. Then all source are processed in the right order.
<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Freitag, 26. Februar 2016 um 19:32 Uhr<br/>
<b>Von:</b> "Sebastian Dröge" <sebastian@centricular.com><br/>
<b>An:</b> "Discussion of the development of and with GStreamer" <gstreamer-devel@lists.freedesktop.org><br/>
<b>Betreff:</b> Re: Aw: Re: gstreamer elements are processed in a random order?!</div>

<div name="quoted-content">On Fr, 2016-02-26 at 13:58 +0100, hammer.werfer@gmx.de wrote:<br/>
> Oh ok. This is my pipeline command:<br/>
>  <br/>
>   cmd = "concat name=c ! queue ! audioconvert ! wavenc ! filesink<br/>
> location=/tmp/output.wav filesrc location=/tmp/first.mp3 ! decodebin<br/>
> ! c. filesrc location=/tmp/second.mp3 ! decodebin ! c."<br/>
>   pipeline = Gst.parse_launch(cmd)<br/>
<br/>
Build your pipeline not from a gst-launch pipeline string, then it will<br/>
work. concat will output the files in the order in which you requested<br/>
the sink pads on it.<br/>
<br/>
gst-launch is also not completely random, but IIRC it links everything<br/>
from end to beginning.<br/>
<br/>
--<br/>
Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br/>
<br/>
_______________________________________________<br/>
gstreamer-devel mailing list<br/>
gstreamer-devel@lists.freedesktop.org<br/>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></div>
</div>
</div>
</div></div></body></html>