fixup! [MM] Introduce a switch for zero-copy support from multimedia
authorws29.jung <ws29.jung@samsung.com>
Tue, 19 Jan 2016 10:28:50 +0000 (19:28 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 07:55:23 +0000 (07:55 +0000)
Previously, build break happens from missing libyuv headers
when |TIZEN_MULTIMEDIA_ZEROCOPY_SUPPORT| is turned off.

This fix includes changes:
- added missing libyuv headers.
- replaced "base::Process::Current().Handle()" with
"base::GetCurrentProcessHandle()"

Reviewed by: sns.park

Change-Id: I1b8f54297ac52366d8274ccf61fcbf9d1979ff94
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
tizen_src/chromium_impl/media/base/efl/media_player_efl.cc

index b9ec77c..73ab6f6 100644 (file)
@@ -9,6 +9,7 @@
 #include "content/public/browser/browser_thread.h"
 #include "media/base/efl/media_player_manager_efl.h"
 #include "media/base/efl/media_player_util_efl.h"
+#include "third_party/libyuv/include/libyuv/planar_functions.h"
 
 namespace media {
 
@@ -59,7 +60,7 @@ void MediaPlayerEfl::DeliverMediaPacket(ScopedMediaPacket packet) {
   }
 
   base::SharedMemoryHandle foreign_memory_handle;
-  if (!shared_memory.ShareToProcess(base::Process::Current().Handle(),
+  if (!shared_memory.ShareToProcess(base::GetCurrentProcessHandle(),
                                     &foreign_memory_handle)) {
     LOG(ERROR) << "Shared Memory handle could not be obtained";
     return;