Skip to content

Commit

Permalink
Cherry pick PR #3015: Revert "Delete the callback before the mMediaCo…
Browse files Browse the repository at this point in the history
…dec is set to null." (#3034)

Refer to the original PR: #3015

Reverts #2774

b/331835987

Co-authored-by: Colin Liang <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and zhongqiliang authored Apr 22, 2024
1 parent 40ef2bd commit 7664e9a
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 7664e9a

Please sign in to comment.