Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c7db9fb3
authored
May 17, 2021
by
aquilescanta
Committed by
Oliver Woodman
May 19, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Deduplicate calls to maybeNotifyPlaybackInfoChanged
PiperOrigin-RevId: 374253036
parent
25b453a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImplInternal.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImplInternal.java
View file @
c7db9fb3
...
...
@@ -545,7 +545,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
default
:
return
false
;
}
maybeNotifyPlaybackInfoChanged
();
}
catch
(
ExoPlaybackException
e
)
{
if
(
e
.
type
==
ExoPlaybackException
.
TYPE_RENDERER
)
{
@Nullable
MediaPeriodHolder
readingPeriod
=
queue
.
getReadingPeriod
();
...
...
@@ -571,7 +570,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
stopInternal
(
/* forceResetRenderers= */
true
,
/* acknowledgeStop= */
false
);
playbackInfo
=
playbackInfo
.
copyWithPlaybackError
(
e
);
}
maybeNotifyPlaybackInfoChanged
();
}
catch
(
IOException
e
)
{
ExoPlaybackException
error
=
ExoPlaybackException
.
createForSource
(
e
);
@Nullable
MediaPeriodHolder
playingPeriod
=
queue
.
getPlayingPeriod
();
...
...
@@ -582,14 +580,13 @@ import java.util.concurrent.atomic.AtomicBoolean;
Log
.
e
(
TAG
,
"Playback error"
,
error
);
stopInternal
(
/* forceResetRenderers= */
false
,
/* acknowledgeStop= */
false
);
playbackInfo
=
playbackInfo
.
copyWithPlaybackError
(
error
);
maybeNotifyPlaybackInfoChanged
();
}
catch
(
RuntimeException
e
)
{
ExoPlaybackException
error
=
ExoPlaybackException
.
createForUnexpected
(
e
);
Log
.
e
(
TAG
,
"Playback error"
,
error
);
stopInternal
(
/* forceResetRenderers= */
true
,
/* acknowledgeStop= */
false
);
playbackInfo
=
playbackInfo
.
copyWithPlaybackError
(
error
);
maybeNotifyPlaybackInfoChanged
();
}
maybeNotifyPlaybackInfoChanged
();
return
true
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment