Skip to content

Commit 32672f1

Browse files
authored
Merge pull request #15 from GetStream/chore/replace-depraceted-destroy
Replaced deprecated onSurfaceDestroyed with onSurfaceCleanup
2 parents 237dac3 + 37762e9 commit 32672f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: android/src/main/java/io/getstream/webrtc/flutter/SurfaceTextureRenderer.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ public void onSurfaceAvailable() {
122122
}
123123

124124
@Override
125-
public void onSurfaceDestroyed() {
126-
surfaceDestroyed();
125+
public void onSurfaceCleanup() {
126+
surfaceCleanup();
127127
}
128128
}
129129
);
130130
}
131131

132-
public void surfaceDestroyed() {
132+
public void surfaceCleanup() {
133133
ThreadUtils.checkIsOnMainThread();
134134
final CountDownLatch completionLatch = new CountDownLatch(1);
135135
releaseEglSurface(completionLatch::countDown);

0 commit comments

Comments
 (0)