diff options
Diffstat (limited to 'dom/media/gmp')
-rw-r--r-- | dom/media/gmp/GMPServiceParent.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dom/media/gmp/GMPServiceParent.cpp b/dom/media/gmp/GMPServiceParent.cpp index a4afbdad44..d1ad26a4a0 100644 --- a/dom/media/gmp/GMPServiceParent.cpp +++ b/dom/media/gmp/GMPServiceParent.cpp @@ -1018,12 +1018,11 @@ GeckoMediaPluginServiceParent::PluginTerminated(const RefPtr<GMPParent>& aPlugin MOZ_ASSERT(NS_GetCurrentThread() == mGMPThread); if (aPlugin->IsMarkedForDeletion()) { - nsCString path8; + nsString path; RefPtr<nsIFile> dir = aPlugin->GetDirectory(); - nsresult rv = dir->GetNativePath(path8); + nsresult rv = dir->GetPath(path); NS_ENSURE_SUCCESS_VOID(rv); - nsString path = NS_ConvertUTF8toUTF16(path8); if (mPluginsWaitingForDeletion.Contains(path)) { RemoveOnGMPThread(path, true /* delete */, true /* can defer */); } |