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
fc992372
authored
Dec 02, 2021
by
hschlueter
Committed by
Oliver Woodman
Dec 06, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Reduce conditional nesting.
PiperOrigin-RevId: 413682281
parent
fb37572b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/VideoSamplePipeline.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/VideoSamplePipeline.java
View file @
fc992372
...
@@ -102,8 +102,16 @@ import java.io.IOException;
...
@@ -102,8 +102,16 @@ import java.io.IOException;
return
false
;
return
false
;
}
}
if
(!
frameEditor
.
hasInputData
())
{
if
(
frameEditor
.
hasInputData
())
{
if
(!
waitingForPopulatedDecoderSurface
)
{
waitingForPopulatedDecoderSurface
=
false
;
frameEditor
.
processData
();
return
true
;
}
if
(
waitingForPopulatedDecoderSurface
)
{
return
false
;
}
if
(
decoder
.
getOutputBufferInfo
()
!=
null
)
{
if
(
decoder
.
getOutputBufferInfo
()
!=
null
)
{
decoder
.
releaseOutputBuffer
(
/* render= */
true
);
decoder
.
releaseOutputBuffer
(
/* render= */
true
);
waitingForPopulatedDecoderSurface
=
true
;
waitingForPopulatedDecoderSurface
=
true
;
...
@@ -111,15 +119,9 @@ import java.io.IOException;
...
@@ -111,15 +119,9 @@ import java.io.IOException;
if
(
decoder
.
isEnded
())
{
if
(
decoder
.
isEnded
())
{
encoder
.
signalEndOfInputStream
();
encoder
.
signalEndOfInputStream
();
}
}
}
return
false
;
return
false
;
}
}
waitingForPopulatedDecoderSurface
=
false
;
frameEditor
.
processData
();
return
true
;
}
@Override
@Override
@Nullable
@Nullable
public
DecoderInputBuffer
dequeueInputBuffer
()
{
public
DecoderInputBuffer
dequeueInputBuffer
()
{
...
...
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