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:
Marshall Greenblatt 2014-01-14 17:37:02 +00:00
parent 796ddf27b4
commit a1b83784ec
1 changed files with 2 additions and 1 deletions

View File

@ -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);