mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 826055 - Check OMX when looking for decoders on FirefoxOS. r=bz
On FirefoxOS, when trying to stream an MP3 file in the browser, Gecko does not check the OMX decoder for support, and streaming fails. This patch adds the check for OMX decoders. The browser now streams the MP3 file correctly.
This commit is contained in:
parent
4707c6f79e
commit
aaa4057366
@ -6360,6 +6360,16 @@ nsContentUtils::FindInternalContentViewer(const char* aType,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef MOZ_WIDGET_GONK
|
||||||
|
if (DecoderTraits::IsOmxSupportedType(nsDependentCString(aType))) {
|
||||||
|
docFactory = do_GetService("@mozilla.org/content/document-loader-factory;1");
|
||||||
|
if (docFactory && aLoaderType) {
|
||||||
|
*aLoaderType = TYPE_CONTENT;
|
||||||
|
}
|
||||||
|
return docFactory.forget();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef MOZ_WEBM
|
#ifdef MOZ_WEBM
|
||||||
if (DecoderTraits::IsWebMType(nsDependentCString(aType))) {
|
if (DecoderTraits::IsWebMType(nsDependentCString(aType))) {
|
||||||
docFactory = do_GetService("@mozilla.org/content/document-loader-factory;1");
|
docFactory = do_GetService("@mozilla.org/content/document-loader-factory;1");
|
||||||
|
Loading…
Reference in New Issue
Block a user