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
7fe68b52
authored
Nov 13, 2020
by
olly
Committed by
Ian Baker
Nov 13, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove stray arguments from method
PiperOrigin-RevId: 342263700
parent
dc86b625
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
8 deletions
library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java
library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java
View file @
7fe68b52
...
@@ -815,8 +815,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
...
@@ -815,8 +815,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
boolean
treatDroppedBuffersAsSkipped
=
joiningDeadlineMs
!=
C
.
TIME_UNSET
;
boolean
treatDroppedBuffersAsSkipped
=
joiningDeadlineMs
!=
C
.
TIME_UNSET
;
if
(
shouldDropBuffersToKeyframe
(
earlyUs
,
elapsedRealtimeUs
,
isLastBuffer
)
if
(
shouldDropBuffersToKeyframe
(
earlyUs
,
elapsedRealtimeUs
,
isLastBuffer
)
&&
maybeDropBuffersToKeyframe
(
&&
maybeDropBuffersToKeyframe
(
positionUs
,
treatDroppedBuffersAsSkipped
))
{
codec
,
bufferIndex
,
presentationTimeUs
,
positionUs
,
treatDroppedBuffersAsSkipped
))
{
return
false
;
return
false
;
}
else
if
(
shouldDropOutputBuffer
(
earlyUs
,
elapsedRealtimeUs
,
isLastBuffer
))
{
}
else
if
(
shouldDropOutputBuffer
(
earlyUs
,
elapsedRealtimeUs
,
isLastBuffer
))
{
if
(
treatDroppedBuffersAsSkipped
)
{
if
(
treatDroppedBuffersAsSkipped
)
{
...
@@ -974,9 +973,6 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
...
@@ -974,9 +973,6 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
* position. If no such keyframe exists, as the playback position is inside the same group of
* position. If no such keyframe exists, as the playback position is inside the same group of
* pictures as the buffer being processed, returns {@code false}. Returns {@code true} otherwise.
* pictures as the buffer being processed, returns {@code false}. Returns {@code true} otherwise.
*
*
* @param codec The codec that owns the output buffer.
* @param index The index of the output buffer to drop.
* @param presentationTimeUs The presentation time of the output buffer, in microseconds.
* @param positionUs The current playback position, in microseconds.
* @param positionUs The current playback position, in microseconds.
* @param treatDroppedBuffersAsSkipped Whether dropped buffers should be treated as intentionally
* @param treatDroppedBuffersAsSkipped Whether dropped buffers should be treated as intentionally
* skipped.
* skipped.
...
@@ -984,9 +980,6 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
...
@@ -984,9 +980,6 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
* @throws ExoPlaybackException If an error occurs flushing the codec.
* @throws ExoPlaybackException If an error occurs flushing the codec.
*/
*/
protected
boolean
maybeDropBuffersToKeyframe
(
protected
boolean
maybeDropBuffersToKeyframe
(
MediaCodecAdapter
codec
,
int
index
,
long
presentationTimeUs
,
long
positionUs
,
long
positionUs
,
boolean
treatDroppedBuffersAsSkipped
)
boolean
treatDroppedBuffersAsSkipped
)
throws
ExoPlaybackException
{
throws
ExoPlaybackException
{
...
...
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