Annotate libjingle_peerconnection_java with @Nullable.
Bug: webrtc:8881 Change-Id: Ida2ef6c003567d19529c21629c916ed40e8de3a6 Reviewed-on: https://webrtc-review.googlesource.com/63380 Commit-Queue: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Paulina Hensman <phensman@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22563}
This commit is contained in:

committed by
Commit Bot

parent
12d6a49e97
commit
e7592d8d5f
@ -10,6 +10,8 @@
|
||||
|
||||
package org.webrtc;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class DefaultVideoDecoderFactory implements VideoDecoderFactory {
|
||||
private final HardwareVideoDecoderFactory hardwareVideoDecoderFactory;
|
||||
private final SoftwareVideoDecoderFactory softwareVideoDecoderFactory;
|
||||
@ -21,7 +23,7 @@ public class DefaultVideoDecoderFactory implements VideoDecoderFactory {
|
||||
}
|
||||
|
||||
@Override
|
||||
public VideoDecoder createDecoder(String codecType) {
|
||||
public @Nullable VideoDecoder createDecoder(String codecType) {
|
||||
VideoDecoder decoder = hardwareVideoDecoderFactory.createDecoder(codecType);
|
||||
if (decoder != null) {
|
||||
return decoder;
|
||||
|
Reference in New Issue
Block a user