Skip to content

Commit

Permalink
Use different package names in DiagnosticInfo for media3 and exoplayer
Browse files Browse the repository at this point in the history
Issue: #476

#minor-release

PiperOrigin-RevId: 543460075
(cherry picked from commit 140c83c)
  • Loading branch information
tianyif committed Jun 26, 2023
1 parent ec13c42 commit 7683ee2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,8 @@ private static String getDiagnosticInfoV21(@Nullable Throwable cause) {

private static String buildCustomDiagnosticInfo(int errorCode) {
String sign = errorCode < 0 ? "neg_" : "";
return "com.google.android.exoplayer2.mediacodec.MediaCodecRenderer_"
+ sign
+ Math.abs(errorCode);
String packageName = "androidx.media3.exoplayer.mediacodec";
return packageName + ".MediaCodecRenderer_" + sign + Math.abs(errorCode);
}
}

Expand Down

0 comments on commit 7683ee2

Please sign in to comment.