Can't be done here. Wrong thread to call releasebuffer from. Push it into rendered queue instead. Also that should likely not be called rendered, it should be called discard i think since that it was it is.