decodeBin.connect(new DecodeBin2.NEW_DECODED_PAD() {
public void newDecodedPad(DecodeBin2 elem, Pad pad, boolean last) {
System.out.println("newDecodedPad");
/* only link once */
Pad audioPad = audioBin.getStaticPad("sink");
if (pad.isLinked()) {
return;
}
/* check media type */