Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void onInit() {
}

@Override
public void onDraw(int textureId, FloatBuffer cubeBuffer, FloatBuffer textureBuffer) {
public synchronized void onDraw(int textureId, FloatBuffer cubeBuffer, FloatBuffer textureBuffer) {
// Draw on screen surface
super.onDraw(textureId, cubeBuffer, textureBuffer);

Expand Down Expand Up @@ -71,7 +71,7 @@ public void onDestroy() {
releaseEncodeSurface();
}

public void startRecording(final String outputPath, final int width, final int height) {
public synchronized void startRecording(final String outputPath, final int width, final int height) {
runOnDraw(new Runnable() {
@Override
public void run() {
Expand All @@ -98,7 +98,7 @@ public void run() {
});
}

public void stopRecording() {
public synchronized void stopRecording() {
runOnDraw(new Runnable() {
@Override
public void run() {
Expand Down