Fix inline assembly for clang

add r8, r0, asl #2
and
add r8, r8, r0, asl #2

are identical in gcc inline assembly, but clang accepts only the latter
variant.

Change-Id: I922367984b6ae2f7268ce99facaf8da425c39d7e
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Define missing static const variable

This prevents link errors with clang (and probably also
with gcc -O0).

Change-Id: Idab65248b45609846c52f5b7aa84fc8701d79237
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Make sure DISALLOW_EVIL_CONSTRUCTORS etc. are defined when used

Without this patch, clang complains about DISALLOW_EVIL_CONSTRUCTORS
being undefined in MediaMuxer.h and MediaWriter.h and
DISALLOW_IMPLICIT_CONSTRUCTORS being undefined in SurfaceMediaSource.h.

This may need some further analysis to see why gcc does see the
definitions - but this variant works with both compilers.

Change-Id: Ie4e99affe98ed8fb1bfcf5ec604c19dcd5311c62
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Movie studio: fix a memory leak issue in the AOSP code

It's an android defect, connect()/disconnect() of OMXClient need be called in a pair,
if miss calling disconnect() while connect() is called, a memory leak will happen.

Change-Id: I9acc19242faa5c981bb77caba52170e0f96dbf96
Orig-Change-Id: I0fa40422aa54dc97dadd850e8a4cb5a9697cb685
Signed-off-by: Gu, Wangyi <wangyi.gu@intel.com>
Signed-off-by: Dan Liang <dan.liang@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 80150
fix wrong access

canConnectUnsafe's output parameter changed from client to clientTmp.
But compare routine didn't changed and client.get() return NULL always.

Change-Id: I3c88391dbee10cc355b2dbf655989ff0d0963600