Commit cc241280 authored by jfroy's avatar jfroy Committed by Commit bot

[cast] Stub out call to VideoEncoderImpl::IsSupported on iOS.

CL 906403006 introduced a linking error by referencing a symbol that is
not included in iOS builds of the cast sender library. This patch stubs
out the relevant code.

BUG=463713

Review URL: https://codereview.chromium.org/974133002

Cr-Commit-Position: refs/heads/master@{#318996}
parent 67c3b8b0
......@@ -34,8 +34,8 @@ scoped_ptr<VideoEncoder> VideoEncoder::Create(
}
#endif // defined(OS_MACOSX)
// If the system provides a hardware-accelerated encoder, use it.
#if !defined(OS_IOS)
// If the system provides a hardware-accelerated encoder, use it.
if (ExternalVideoEncoder::IsSupported(video_config)) {
return scoped_ptr<VideoEncoder>(new SizeAdaptableExternalVideoEncoder(
cast_environment,
......@@ -44,7 +44,6 @@ scoped_ptr<VideoEncoder> VideoEncoder::Create(
create_vea_cb,
create_video_encode_memory_cb));
}
#endif // !defined(OS_IOS)
// Attempt to use the software encoder implementation.
if (VideoEncoderImpl::IsSupported(video_config)) {
......@@ -53,6 +52,7 @@ scoped_ptr<VideoEncoder> VideoEncoder::Create(
video_config,
status_change_cb));
}
#endif // !defined(OS_IOS)
// No encoder implementation will suffice.
return nullptr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment