@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; }
@Override public boolean remove(IElement element) { return gst_bin_remove(ptr, element.getPointer()); }