Allow calling SoftwareVideoDecoderFactory#createDecoder(String).

Previously, this would crash with UnsupportedOperationException. Allows
still calling this while the method is deprecated.

Bug: webrtc:9536, webrtc:7925
Change-Id: I7b88cecca7a4e6f505c7211cf2eb576c394973f8
Reviewed-on: https://webrtc-review.googlesource.com/89381
Reviewed-by: Paulina Hensman <phensman@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24025}
This commit is contained in:
Sami Kalliomäki
2018-07-18 15:11:59 +02:00
committed by Commit Bot
parent 87b3c510b4
commit fe68203494

View File

@ -16,6 +16,13 @@ import java.util.List;
import javax.annotation.Nullable;
public class SoftwareVideoDecoderFactory implements VideoDecoderFactory {
@Deprecated
@Nullable
@Override
public VideoDecoder createDecoder(String codecType) {
return createDecoder(new VideoCodecInfo(codecType, new HashMap<>()));
}
@Nullable
@Override
public VideoDecoder createDecoder(VideoCodecInfo codecType) {