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
be721943
authored
Oct 02, 2014
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix incorrect condition.
parent
1c92b28b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
library/src/main/java/com/google/android/exoplayer/MediaCodecVideoTrackRenderer.java
library/src/main/java/com/google/android/exoplayer/MediaCodecVideoTrackRenderer.java
View file @
be721943
...
...
@@ -375,14 +375,16 @@ public class MediaCodecVideoTrackRenderer extends MediaCodecTrackRenderer {
return
true
;
}
if
(
getState
()
==
TrackRenderer
.
STATE_STARTED
&&
earlyUs
<
30000
)
{
if
(
getState
()
!=
TrackRenderer
.
STATE_STARTED
)
{
return
false
;
}
if
(
Util
.
SDK_INT
>=
21
)
{
// Let the underlying framework time the release.
if
(
earlyUs
<
50000
)
{
renderOutputBufferTimedV21
(
codec
,
bufferIndex
,
System
.
nanoTime
()
+
(
earlyUs
*
1000L
));
return
true
;
}
return
false
;
}
else
{
// We need to time the release ourselves.
if
(
earlyUs
<
30000
)
{
...
...
@@ -399,8 +401,6 @@ public class MediaCodecVideoTrackRenderer extends MediaCodecTrackRenderer {
renderOutputBufferImmediate
(
codec
,
bufferIndex
);
return
true
;
}
return
false
;
}
}
// We're either not playing, or it's not time to render the frame yet.
...
...
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