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
f637fde9
authored
Apr 22, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Allow overriding of codec buffer dequeue block time.
parent
1a9bf018
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
library/src/main/java/com/google/android/exoplayer/MediaCodecTrackRenderer.java
library/src/main/java/com/google/android/exoplayer/MediaCodecTrackRenderer.java
View file @
f637fde9
...
@@ -794,6 +794,15 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
...
@@ -794,6 +794,15 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
}
}
/**
/**
* Returns the maximum time to block whilst waiting for a decoded output buffer.
*
* @return The maximum time to block, in microseconds.
*/
protected
long
getDequeueOutputBufferTimeoutUs
()
{
return
0
;
}
/**
* @return True if it may be possible to drain more output data. False otherwise.
* @return True if it may be possible to drain more output data. False otherwise.
* @throws ExoPlaybackException If an error occurs draining the output buffer.
* @throws ExoPlaybackException If an error occurs draining the output buffer.
*/
*/
...
@@ -805,7 +814,7 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
...
@@ -805,7 +814,7 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
}
}
if
(
outputIndex
<
0
)
{
if
(
outputIndex
<
0
)
{
outputIndex
=
codec
.
dequeueOutputBuffer
(
outputBufferInfo
,
0
);
outputIndex
=
codec
.
dequeueOutputBuffer
(
outputBufferInfo
,
getDequeueOutputBufferTimeoutUs
()
);
}
}
if
(
outputIndex
==
MediaCodec
.
INFO_OUTPUT_FORMAT_CHANGED
)
{
if
(
outputIndex
==
MediaCodec
.
INFO_OUTPUT_FORMAT_CHANGED
)
{
...
...
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