@@ -292,6 +292,7 @@ public void release() {
292
292
renderThread .quit ();
293
293
synchronized (frameLock ) {
294
294
if (pendingFrame != null ) {
295
+ pendingFrame .release ();
295
296
pendingFrame = null ;
296
297
}
297
298
}
@@ -350,7 +351,7 @@ public void onFrame(VideoFrame frame) {
350
351
synchronized (statisticsLock ) {
351
352
++framesDropped ;
352
353
}
353
- frame .release ();
354
+ pendingFrame .release ();
354
355
}
355
356
pendingFrame = frame ;
356
357
renderThreadHandler .post (renderFrameRunnable );
@@ -468,6 +469,7 @@ private void renderFrameOnRenderThread() {
468
469
}
469
470
470
471
final long startTimeNs = System .nanoTime ();
472
+ //FIXME
471
473
final float [] texMatrix = {
472
474
1.0f , 0.0f , 0.0f , 0.0f ,
473
475
0.0f , 1.0f , 0.0f , 0.0f ,
@@ -561,7 +563,7 @@ private void updateFrameDimensionsAndReportEvents(VideoFrame frame) {
561
563
synchronized (layoutLock ) {
562
564
if (frameWidth != frame .getRotatedWidth () || frameHeight != frame .getRotatedHeight () || frameRotation != frame .getRotation ()) {
563
565
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 () );
565
567
if (rendererEvents != null ) {
566
568
rendererEvents .onFrameResolutionChanged (frame .getRotatedWidth (), frame .getRotatedHeight (), frame .getRotation ());
567
569
}
0 commit comments