diff options
-rw-r--r-- | content/common/gpu/media/android_video_encode_accelerator.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/common/gpu/media/android_video_encode_accelerator.cc b/content/common/gpu/media/android_video_encode_accelerator.cc index 7928143..05f18b6 100644 --- a/content/common/gpu/media/android_video_encode_accelerator.cc +++ b/content/common/gpu/media/android_video_encode_accelerator.cc @@ -87,9 +87,11 @@ AndroidVideoEncodeAccelerator::GetSupportedProfiles() { std::vector<SupportedProfile> profiles; +#if defined(ENABLE_WEBRTC) const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); if (cmd_line->HasSwitch(switches::kDisableWebRtcHWEncoding)) return profiles; +#endif for (size_t i = 0; i < codecs_info.size(); ++i) { const MediaCodecBridge::CodecsInfo& info = codecs_info[i]; |