Make HardwareVideo*Factory ctors that take fallbackToSoftware public.
https://webrtc-review.googlesource.com/c/src/+/17480 changed the default behavior of HardwareVideoEncoderFactory and HardwareVideoDecoderFactory without providing any way to maintain the previous behavior. This breaks current users. Making these constructors public at least gives existing users a way to maintain the previous behavior. Bug: webrtc:7925 Change-Id: Id8f0ec25026592f5e9096ac5f39fdda22993ff09 Reviewed-on: https://webrtc-review.googlesource.com/22763 Reviewed-by: Anders Carlsson <andersc@webrtc.org> Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Commit-Queue: Bjorn Mellem <mellem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20675}
This commit is contained in:
@ -42,7 +42,7 @@ public class HardwareVideoDecoderFactory implements VideoDecoderFactory {
|
||||
this(sharedContext, true /* fallbackToSoftware */);
|
||||
}
|
||||
|
||||
HardwareVideoDecoderFactory(EglBase.Context sharedContext, boolean fallbackToSoftware) {
|
||||
public HardwareVideoDecoderFactory(EglBase.Context sharedContext, boolean fallbackToSoftware) {
|
||||
this.sharedContext = sharedContext;
|
||||
this.fallbackToSoftware = fallbackToSoftware;
|
||||
}
|
||||
|
Reference in New Issue
Block a user