Fix a bug in HardwareVideoEncoderTest.
Previously, EGL context was always supplied regardless of useEglContext parameter. Bug: None Change-Id: Iaae93f4f52175674862a101837e0f2ae6575d91b Reviewed-on: https://webrtc-review.googlesource.com/5562 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Commit-Queue: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20088}
This commit is contained in:
committed by
Commit Bot
parent
a31fd0d69a
commit
208b30936f
@ -265,7 +265,7 @@ public class HardwareVideoEncoderTest {
|
||||
|
||||
private VideoEncoder createEncoder() {
|
||||
VideoEncoderFactory factory =
|
||||
createEncoderFactory(useTextures ? eglBase.getEglBaseContext() : null);
|
||||
createEncoderFactory(useEglContext ? eglBase.getEglBaseContext() : null);
|
||||
VideoCodecInfo[] supportedCodecs = factory.getSupportedCodecs();
|
||||
return factory.createEncoder(supportedCodecs[0]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user