Skip to content

Commit

Permalink
Revert "chore: optimize"
Browse files Browse the repository at this point in the history
This reverts commit e800bea.
  • Loading branch information
guoxianzhe committed May 11, 2024
1 parent e800bea commit 3240684
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ts/Renderer/WebCodecsRendererCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export class WebCodecsRendererCache
type: VideoStreamType.VideoStreamHigh,
encodedFrameOnly: true,
});
this._engine?.getMediaEngine().registerVideoEncodedFrameObserver(this);
}

public shouldFallback(frameInfo: EncodedVideoFrameInfo): boolean {
Expand Down Expand Up @@ -105,7 +104,6 @@ export class WebCodecsRendererCache

public release(): void {
logInfo('call_back_with_encoded_video_frame release');
this._engine?.getMediaEngine().unregisterVideoEncodedFrameObserver(this);
this._decoder?.release();
this._decoder = null;
super.release();
Expand Down

0 comments on commit 3240684

Please sign in to comment.