Skip to content

Commit

Permalink
Revert "Delete the callback before the mMediaCodec is set to null." (#…
Browse files Browse the repository at this point in the history
…3015)

Reverts #2774

b/331835987
  • Loading branch information
zhongqiliang authored Apr 19, 2024
1 parent f5d573a commit a26b902
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -818,9 +818,6 @@ public static void createVideoMediaCodecBridge(
@UsedByNative
public void release() {
try {
mMediaCodec.setCallback(null);
mCallback = null;

String codecName = mMediaCodec.getName();
Log.w(TAG, "calling MediaCodec.release() on " + codecName);
mMediaCodec.release();
Expand Down

0 comments on commit a26b902

Please sign in to comment.