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
c228017f
authored
Jan 27, 2015
by
Martin Bonnin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
rename hasQueuedOneInputBuffer to hasQueuedInputBuffer
parent
424b29f9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
library/src/main/java/com/google/android/exoplayer/MediaCodecTrackRenderer.java
library/src/main/java/com/google/android/exoplayer/MediaCodecTrackRenderer.java
View file @
c228017f
...
...
@@ -181,7 +181,7 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
private
boolean
outputStreamEnded
;
private
boolean
waitingForKeys
;
private
boolean
waitingForFirstSyncFrame
;
private
boolean
hasQueued
One
InputBuffer
;
private
boolean
hasQueuedInputBuffer
;
private
long
currentPositionUs
;
/**
...
...
@@ -319,7 +319,7 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
inputIndex
=
-
1
;
outputIndex
=
-
1
;
waitingForFirstSyncFrame
=
true
;
hasQueued
One
InputBuffer
=
false
;
hasQueuedInputBuffer
=
false
;
codecCounters
.
codecInitCount
++;
}
...
...
@@ -501,7 +501,7 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
codecReconfigurationState
=
RECONFIGURATION_STATE_WRITE_PENDING
;
}
hasQueued
One
InputBuffer
=
false
;
hasQueuedInputBuffer
=
false
;
}
/**
...
...
@@ -624,7 +624,7 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
codec
.
queueInputBuffer
(
inputIndex
,
0
,
bufferSize
,
presentationTimeUs
,
0
);
}
inputIndex
=
-
1
;
hasQueued
One
InputBuffer
=
true
;
hasQueuedInputBuffer
=
true
;
codecReconfigurationState
=
RECONFIGURATION_STATE_NONE
;
}
catch
(
CryptoException
e
)
{
notifyCryptoError
(
e
);
...
...
@@ -678,7 +678,7 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
codecReconfigured
=
true
;
codecReconfigurationState
=
RECONFIGURATION_STATE_WRITE_PENDING
;
}
else
{
if
(!
hasQueued
One
InputBuffer
)
{
if
(!
hasQueuedInputBuffer
)
{
// no need to signal end of stream if nothing has been queued, we can just reinit asap
releaseCodec
();
maybeInitCodec
();
...
...
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