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
1a6f36d4
authored
May 20, 2021
by
tonihei
Committed by
Oliver Woodman
May 20, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix reading position at stream transition.
PiperOrigin-RevId: 374836046
parent
8eb990e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
library/core/src/main/java/com/google/android/exoplayer2/BaseRenderer.java
library/core/src/main/java/com/google/android/exoplayer2/Renderer.java
library/core/src/main/java/com/google/android/exoplayer2/BaseRenderer.java
View file @
1a6f36d4
...
...
@@ -113,7 +113,9 @@ public abstract class BaseRenderer implements Renderer, RendererCapabilities {
throws
ExoPlaybackException
{
Assertions
.
checkState
(!
streamIsFinal
);
this
.
stream
=
stream
;
readingPositionUs
=
offsetUs
;
if
(
readingPositionUs
==
C
.
TIME_END_OF_SOURCE
)
{
readingPositionUs
=
startPositionUs
;
}
streamFormats
=
formats
;
streamOffsetUs
=
offsetUs
;
onStreamChanged
(
formats
,
startPositionUs
,
offsetUs
);
...
...
library/core/src/main/java/com/google/android/exoplayer2/Renderer.java
View file @
1a6f36d4
...
...
@@ -339,9 +339,8 @@ public interface Renderer extends PlayerMessage.Target {
boolean
hasReadStreamToEnd
();
/**
* Returns the renderer time up to which the renderer has read samples from the current {@link
* SampleStream}, in microseconds, or {@link C#TIME_END_OF_SOURCE} if the renderer has read the
* current {@link SampleStream} to the end.
* Returns the renderer time up to which the renderer has read samples, in microseconds, or {@link
* C#TIME_END_OF_SOURCE} if the renderer has read the current {@link SampleStream} to the end.
*
* <p>This method may be called when the renderer is in the following states: {@link
* #STATE_ENABLED}, {@link #STATE_STARTED}.
...
...
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