From 1b42d3b7d8e8324d513ee331553710b440fd0a96 Mon Sep 17 00:00:00 2001 From: Gerald Squelart Date: Thu, 9 Jul 2015 18:22:00 +0200 Subject: [PATCH] Bug 1182363 - Added missing 'else' to prevent wrong error logging. r=edwin --- media/gmp-clearkey/0.1/gmp-clearkey.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/gmp-clearkey/0.1/gmp-clearkey.cpp b/media/gmp-clearkey/0.1/gmp-clearkey.cpp index 126cc3c2326..9d838db62d6 100644 --- a/media/gmp-clearkey/0.1/gmp-clearkey.cpp +++ b/media/gmp-clearkey/0.1/gmp-clearkey.cpp @@ -62,7 +62,7 @@ GMPGetAPI(const char* aApiName, void* aHostAPI, void** aPluginAPI) *aPluginAPI = new ClearKeySessionManager(); } #if defined(ENABLE_WMF) - if (!strcmp(aApiName, GMP_API_AUDIO_DECODER) && + else if (!strcmp(aApiName, GMP_API_AUDIO_DECODER) && wmf::EnsureLibs()) { *aPluginAPI = new AudioDecoder(static_cast(aHostAPI)); } else if (!strcmp(aApiName, GMP_API_VIDEO_DECODER) &&