Skip to content

Commit

Permalink
Log the player error
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin committed Jan 4, 2023
1 parent 543f609 commit fcfacda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/org/schabi/newpipe/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@ public void onCues(@NonNull final CueGroup cueGroup) {
@SuppressWarnings("SwitchIntDef")
@Override
public void onPlayerError(@NonNull final PlaybackException error) {
Log.e(TAG, "ExoPlayer - onPlayerError() called with:", error);
Log.e(TAG, "ExoPlayer - onPlayerError() called with:" + error.toBundle());

saveStreamProgressState();
boolean isCatchableException = false;
Expand Down Expand Up @@ -1436,7 +1436,7 @@ public void onPlayerError(@NonNull final PlaybackException error) {
? simpleExoPlayer.getPlayerError() : null;
if (epe != null && epe.type == ExoPlaybackException.TYPE_UNEXPECTED
&& simpleExoPlayer.isTunnelingEnabled()
&& Log.getStackTraceString(epe.getUnexpectedException())
&& Log.getStackTraceString(epe.getUnexpectedException())
.contains("Surface")) {
trackSelector.setParameters(trackSelector.buildUponParameters()
.setTunnelingEnabled(false));
Expand Down

0 comments on commit fcfacda

Please sign in to comment.