WRONG_HIERARCHY when both elements are in the same Pipeline

jimfcarroll jimfcarroll at gmail.com
Sat May 5 12:20:57 UTC 2018


Some additional information. The program is in Java and the following code is
inserted to demonstrate my the condition:

           final Pad teePad = tee.getRequestPad("src_2");
           System.out.println(pipe.element.add(tee));
           final Pad sinkPad = inputStreamBin.getSinkPads().get(0);
           System.out.println(teePad.getName());
           System.out.println(teePad.getParent().getName());
           System.out.println(teePad.getParent().getParent().getName());
          
System.out.println(teePad.getParent().getParent().getParent().getName());
           System.out.println(sinkPad.getName());
           System.out.println(sinkPad.getParent().getName());
           System.out.println(sinkPad.getParent().getParent().getName());
           System.out.println(teePad.link(sinkPad));

It produces:

src_2
tee8
vsrc_0
pipeline0
GstSink:sink
vsrc_1
pipeline0
WRONG_HIERARCHY

Notice, pad src_2 is part of element tee8, which is part of bin vsrc_0 which
is in pipeline0. Also, sinkPad is GstSink:sink which is a ghostpad of bin
vsrc_1 whose parent is ALSO pipeline0. YET the link produces a
"WRONG_HIERARCHY."




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list