Skip to content

Commit

Permalink
Cherry pick PR #3627: [android] Log exception for MediaCodec creation (
Browse files Browse the repository at this point in the history
…#3636)

Refer to the original PR: #3627

Log the exception details when `MediaCodec.createByCodecName()` fails,
so we can get extra information about the failure.

b/348438829

Change-Id: Ide2c00d7183731b82da36954dfaacb6287ab5f7d

Co-authored-by: xiaomings <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and xiaomings committed Jun 22, 2024
1 parent 86b8d69 commit 0d42143
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,8 @@ public static void createVideoMediaCodecBridge(
mime,
crypto != null,
decoderName);
Log.e(TAG, message, e);
message += ", exception: " + e.toString();
Log.e(TAG, message);
outCreateMediaCodecBridgeResult.mErrorMessage = message;
return;
}
Expand Down

0 comments on commit 0d42143

Please sign in to comment.