8000 Updating WebRTC lib #1 · flutter-webrtc/flutter-webrtc@c0c664d · GitHub
[go: up one dir, main page]

Skip to content

Commit c0c664d

Browse files
committed
Updating WebRTC lib #1
It builds 🎉 Loopback sample working. Poorly
1 parent 1be17c2 commit c0c664d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

android/src/main/java/com/cloudwebrtc/webrtc/SurfaceTextureRenderer.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ public void release() {
292292
renderThread.quit();
293293
synchronized (frameLock) {
294294
if (pendingFrame != null) {
295+
pendingFrame.release();
295296
pendingFrame = null;
296297
}
297298
}
@@ -350,7 +351,7 @@ public void onFrame(VideoFrame frame) {
350351
synchronized (statisticsLock) {
351352
++framesDropped;
352353
}
353-
frame.release();
354+
pendingFrame.release();
354355
}
355356
pendingFrame = frame;
356357
renderThreadHandler.post(renderFrameRunnable);
@@ -468,6 +469,7 @@ private void renderFrameOnRenderThread() {
468469
}
469470

470471
final long startTimeNs = System.nanoTime();
472+
//FIXME
471473
final float[] texMatrix = {
472474
1.0f , 0.0f , 0.0f , 0.0f,
473475
0.0f, 1.0f, 0.0f , 0.0f ,
@@ -561,7 +563,7 @@ private void updateFrameDimensionsAndReportEvents(VideoFrame frame) {
561563
synchronized (layoutLock) {
562564
if (frameWidth != frame.getRotatedWidth() || frameHeight != frame.getRotatedHeight() || frameRotation != frame.getRotation()) {
563565
Logging.d(TAG, getResourceName() + "Reporting frame resolution changed to "
564-
+ frame.getRotatedWidth() + "x" + frame.getRotatedHeight() + " with rotation " + frameRotation);
566+
+ frame.getRotatedWidth() + "x" + frame.getRotatedHeight() + " with rotation " + frame.getRotation());
565567
if (rendererEvents != null) {
566568
rendererEvents.onFrameResolutionChanged(frame.getRotatedWidth(), frame.getRotatedHeight(), frame.getRotation());
567569
}

0 commit comments

Comments
 (0)
0