Fix a crash in AppRTCMobile when videoCodec is set to null.
peerConnectionParameters.videoCodec can be null in some cases. Previously, this would cause a crash in AppRTCMobile. Bug: b/67938523 Change-Id: I30ebf0f91fad23a3cf34946736b9f4e6c266277f Reviewed-on: https://webrtc-review.googlesource.com/14200 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Commit-Queue: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20372}
This commit is contained in:
committed by
Commit Bot
parent
36636a2d6c
commit
9434240f7e
@ -516,7 +516,7 @@ public class PeerConnectionClient {
|
||||
Log.d(TAG, "Factory networkIgnoreMask option: " + options.networkIgnoreMask);
|
||||
}
|
||||
final boolean enableH264HighProfile =
|
||||
peerConnectionParameters.videoCodec.equals(VIDEO_CODEC_H264_HIGH);
|
||||
VIDEO_CODEC_H264_HIGH.equals(peerConnectionParameters.videoCodec);
|
||||
factory = new PeerConnectionFactory(options,
|
||||
new HardwareVideoEncoderFactory(rootEglBase.getEglBaseContext(),
|
||||
true /* enableIntelVp8Encoder */, enableH264HighProfile),
|
||||
|
||||
Reference in New Issue
Block a user