Ejemplo n.º 1
0
 @Override
 public boolean add(IElement element) {
   BaseGstElement elem = (BaseGstElement) element;
   synchronized (elem.ownershipLock()) {
     elem.takeOwnership();
     if (!gst_bin_add(ptr, element.getPointer())) {
       elem.releaseOwnership();
       return false;
     }
   }
   return true;
 }
Ejemplo n.º 2
0
 @Override
 public boolean remove(IElement element) {
   return gst_bin_remove(ptr, element.getPointer());
 }