final void recycleVideoBuffer ( BaseVideoFrame frame ) { // Make sure we are in started state if ( state . isStarted ( ) ) { enqueueBuffer ( object , frame . getBufferInex ( ) ) ; synchronized ( availableVideoFrames ) { availableVideoFrames . add ( frame ) ; availableVideoFrames . notify ( ) ; } } }
This method is called by a video frame when it is being recycled .