This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Description
I have a problem linking a source to a Bin:
Works:
Bin bin = Bin.launch("filesrc location=/tmp/sound.au ! queue ! audio/x-raw-int,rate=44100,channels=1,width=16,depth=16,signed=true,endianness=4321 ! audioconvert ! lame ! filesink location=/tmp/sound.mp3", true);
Pipeline pipe = new Pipeline();
pipe.addMany(bin);
...
Does not work:
Element source = ElementFactory.make("filesrc", "filesrc0");
source.set("location", `"/tmp/sound.au");`
Bin bin = Bin.launch("queue ! audio/x-raw-int,rate=44100,channels=1,width=16,depth=16,signed=true,endianness=4321 ! audioconvert ! lame ! filesink location=/tmp/sound.mp3", false);
Pipeline pipe = new Pipeline();
source.link(bin);
pipe.addMany(source, bin);
...
What is the difference between the filesrc inside the bin and my external one that I link to the bin?