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
43aa89aa
authored
Aug 10, 2022
by
Googler
Committed by
Marc Baechinger
Oct 19, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix ChainingGlTextureProcessorListener field name.
PiperOrigin-RevId: 466735554
parent
70972bba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/ChainingGlTextureProcessorListener.java
google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/ChainingGlTextureProcessorListener.java
View file @
43aa89aa
...
...
@@ -41,7 +41,7 @@ import java.util.Queue;
private
final
Queue
<
Pair
<
TextureInfo
,
Long
>>
availableFrames
;
@GuardedBy
(
"this"
)
private
int
next
GlTextureProcessorInputCapacity
;
private
int
consuming
GlTextureProcessorInputCapacity
;
/**
* Creates a new instance.
...
...
@@ -69,7 +69,7 @@ import java.util.Queue;
public
synchronized
void
onReadyToAcceptInputFrame
()
{
@Nullable
Pair
<
TextureInfo
,
Long
>
pendingFrame
=
availableFrames
.
poll
();
if
(
pendingFrame
==
null
)
{
next
GlTextureProcessorInputCapacity
++;
consuming
GlTextureProcessorInputCapacity
++;
return
;
}
...
...
@@ -94,12 +94,12 @@ import java.util.Queue;
@Override
public
synchronized
void
onOutputFrameAvailable
(
TextureInfo
outputTexture
,
long
presentationTimeUs
)
{
if
(
next
GlTextureProcessorInputCapacity
>
0
)
{
if
(
consuming
GlTextureProcessorInputCapacity
>
0
)
{
frameProcessingTaskExecutor
.
submit
(
()
->
consumingGlTextureProcessor
.
queueInputFrame
(
/* inputTexture= */
outputTexture
,
presentationTimeUs
));
next
GlTextureProcessorInputCapacity
--;
consuming
GlTextureProcessorInputCapacity
--;
}
else
{
availableFrames
.
add
(
new
Pair
<>(
outputTexture
,
presentationTimeUs
));
}
...
...
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