Index: content/renderer/renderer_webkitplatformsupport_impl.cc |
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc |
index ca92d5e5568cd56aa2d2c99ab959a19ddc66828d..96397943a98866178d4eacf5dbe0842da5e4eb34 100644 |
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc |
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc |
@@ -432,18 +432,18 @@ RendererWebKitPlatformSupportImpl::MimeRegistry::supportsMediaMIMEType( |
// Check list of strict codecs to see if it is supported. |
if (net::IsStrictMediaMimeType(mime_type_ascii)) { |
- // We support the container, but no codecs were specified. |
- if (codecs.isNull()) |
- return MayBeSupported; |
- |
// Check if the codecs are a perfect match. |
std::vector<std::string> strict_codecs; |
net::ParseCodecString(ToASCIIOrEmpty(codecs), &strict_codecs, false); |
- if (!net::IsSupportedStrictMediaMimeType(mime_type_ascii, strict_codecs)) |
- return IsNotSupported; |
+ if (net::IsSupportedStrictMediaMimeType(mime_type_ascii, strict_codecs)) |
+ return IsSupported; |
- // Good to go! |
- return IsSupported; |
+ // We support the container, but no codecs were specified. |
+ if (codecs.isNull()) |
+ return MayBeSupported; |
+ |
+ // Not Supported |
scherkus (not reviewing)
2014/04/15 21:05:52
this comment isn't very helpful as the code on the
amogh.bihani
2014/04/16 02:50:03
Done.
|
+ return IsNotSupported; |
} |
// If we don't recognize the codec, it's possible we support it. |