| Index: webkit/api/src/WebMediaPlayerClientImpl.cpp
|
| diff --git a/webkit/api/src/WebMediaPlayerClientImpl.cpp b/webkit/api/src/WebMediaPlayerClientImpl.cpp
|
| index 0451ad888c291f4507112913b141cb5dd9aec48a..d26bd160a1a91ba85d74dc72dad4c06a75d0b405 100644
|
| --- a/webkit/api/src/WebMediaPlayerClientImpl.cpp
|
| +++ b/webkit/api/src/WebMediaPlayerClientImpl.cpp
|
| @@ -377,10 +377,17 @@ void WebMediaPlayerClientImpl::getSupportedTypes(HashSet<String>& supportedTypes
|
| MediaPlayer::SupportsType WebMediaPlayerClientImpl::supportsType(const String& type,
|
| const String& codecs)
|
| {
|
| - // FIXME: respect codecs, now we only check for mime-type.
|
| - if (webKitClient()->mimeRegistry()->supportsMediaMIMEType(type))
|
| - return MediaPlayer::IsSupported;
|
| - return MediaPlayer::IsNotSupported;
|
| + WebMimeRegistry::SupportsType supportsType =
|
| + webKitClient()->mimeRegistry()->supportsMediaMIMEType(type, codecs);
|
| +
|
| + switch (supportsType) {
|
| + case WebMimeRegistry::IsNotSupported:
|
| + return MediaPlayer::IsNotSupported;
|
| + case WebMimeRegistry::IsSupported:
|
| + return MediaPlayer::IsSupported;
|
| + case WebMimeRegistry::MayBeSupported:
|
| + return MediaPlayer::MayBeSupported;
|
| + }
|
| }
|
|
|
| WebMediaPlayerClientImpl::WebMediaPlayerClientImpl()
|
|
|