Android: Fix warnings
TBR=sakal@webrtc.org Bug: webrtc:6597,webrtc:8534 Change-Id: I39f96d9e0e6d604051b1cc13368dd44fc82b30b0 Reviewed-on: https://webrtc-review.googlesource.com/23622 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20719}
This commit is contained in:
committed by
Commit Bot
parent
df0822b102
commit
6062f372c7
@ -309,16 +309,15 @@ public class HardwareVideoEncoderTest {
|
||||
case OK:
|
||||
return; // Success
|
||||
case NO_OUTPUT:
|
||||
if (numTries < NUM_ENCODE_TRIES) {
|
||||
try {
|
||||
Thread.sleep(ENCODE_RETRY_SLEEP_MS); // Try again.
|
||||
} catch (InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
break;
|
||||
} else {
|
||||
if (numTries >= NUM_ENCODE_TRIES) {
|
||||
fail("encoder.encode keeps returning NO_OUTPUT");
|
||||
}
|
||||
try {
|
||||
Thread.sleep(ENCODE_RETRY_SLEEP_MS); // Try again.
|
||||
} catch (InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
fail("encoder.encode returned: " + returnValue); // Error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user