mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
Bug 1749046 - Generalize EncoderTraits so that it works for audio. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D199523
This commit is contained in:
parent
fbd79d4bbc
commit
40c99f5805
@ -12,12 +12,13 @@
|
||||
|
||||
namespace mozilla::EncoderSupport {
|
||||
|
||||
bool Supports(const RefPtr<dom::VideoEncoderConfigInternal>& aEncoderConfigInternal) {
|
||||
template <typename T>
|
||||
bool Supports(const RefPtr<T>& aEncoderConfigInternal) {
|
||||
RefPtr<PEMFactory> factory = new PEMFactory();
|
||||
EncoderConfig config = aEncoderConfigInternal->ToEncoderConfig();
|
||||
return factory->Supports(config);
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
} // namespace mozilla::EncoderSupport
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user