mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-16 20:20:51 +01:00
Mac: Fix loading of media libraries (issue #1176)
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1570 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
796ddf27b4
commit
a1b83784ec
@ -39,6 +39,7 @@ MSVC_POP_WARNING();
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
#include "content/public/browser/render_process_host.h"
|
||||
#include "content/public/common/content_constants.h"
|
||||
#include "content/public/common/content_paths.h"
|
||||
#include "content/public/renderer/render_thread.h"
|
||||
#include "content/public/renderer/render_view.h"
|
||||
#include "content/renderer/render_frame_impl.h"
|
||||
@ -391,7 +392,7 @@ void CefContentRendererClient::RenderThreadStarted() {
|
||||
// Note that under Linux, the media library will normally already have
|
||||
// been initialized by the Zygote before this instance became a Renderer.
|
||||
base::FilePath media_path;
|
||||
PathService::Get(base::DIR_MODULE, &media_path);
|
||||
PathService::Get(content::DIR_MEDIA_LIBS, &media_path);
|
||||
if (!media_path.empty())
|
||||
media::InitializeMediaLibrary(media_path);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user