Skip to content

Commit a77551d

Browse files
authored
fix: hw decoder rendering delay after frame resize (#302)
1 parent d11d4ba commit a77551d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stream-webrtc-android/src/main/java/org/webrtc/AndroidVideoDecoder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ public VideoCodecStatus release() {
303303
renderedTextureMetadata = null;
304304
}
305305
callback = null;
306-
frameInfos.clear();
307306
return status;
308307
}
309308

@@ -331,6 +330,7 @@ private VideoCodecStatus releaseInternal() {
331330
} finally {
332331
codec = null;
333332
outputThread = null;
333+
frameInfos.clear();
334334
}
335335
return VideoCodecStatus.OK;
336336
}
@@ -422,7 +422,6 @@ private void deliverTextureFrame(final int index, final MediaCodec.BufferInfo in
422422

423423
@Override
424424
public void onFrame(VideoFrame frame) {
425-
final VideoFrame newFrame;
426425
final Integer decodeTimeMs;
427426
final long timestampNs;
428427
synchronized (renderedTextureMetadataLock) {

0 commit comments

Comments
 (0)