mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Remove unnecessary call in MediaCodecVideoRenderer
Before this CL, the FrameMetadataListener was set in onReadyToInitializeCodec while it had already been set when handling message MSG_SET_VIDEO_FRAME_METADATA_LISTENER. PiperOrigin-RevId: 624940824
This commit is contained in:
parent
a701c2f035
commit
42335893da
1 changed files with 0 additions and 3 deletions
|
|
@ -1065,9 +1065,6 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer
|
|||
if (hasEffects && !hasInitializedPlayback && !videoSinkProvider.isInitialized()) {
|
||||
try {
|
||||
videoSinkProvider.initialize(format);
|
||||
if (frameMetadataListener != null) {
|
||||
videoSinkProvider.setVideoFrameMetadataListener(frameMetadataListener);
|
||||
}
|
||||
if (displaySurface != null && outputResolution != null) {
|
||||
videoSinkProvider.setOutputSurfaceInfo(displaySurface, outputResolution);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue