Skip to content
Snippets Groups Projects
Commit e24eeb9b authored by Leo Ma's avatar Leo Ma
Browse files

Add condition before pushing to the encoder


Signed-off-by: default avatarLeo Ma <begeekmyfriend@gmail.com>
parent 43ca4b0e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -120,11 +120,13 @@ public class SrsCameraView extends GLSurfaceView implements GLSurfaceView.Render
surfaceTexture.getTransformMatrix(mSurfaceMatrix);
Matrix.multiplyMM(mTransformMatrix, 0, mSurfaceMatrix, 0, mProjectionMatrix, 0);
magicFilter.setTextureTransformMatrix(mTransformMatrix);
magicFilter.onDrawFrame(mOESTextureId);
mGLIntBufferCache.add(magicFilter.getGLFboBuffer());
synchronized (writeLock) {
writeLock.notifyAll();
if (worker != null) {
mGLIntBufferCache.add(magicFilter.getGLFboBuffer());
synchronized (writeLock) {
writeLock.notifyAll();
}
}
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment