Fix for getPosition after seek

When starting playback with a seek pending
(calling seek before start) there is a brief period
when the audioplayer returns an incorrect position (zero)

This is caused by that mSeeking is set to false
before the position in the audioplayer actually is updated.

Change-Id: Iaec355c8fdfe589d9b826d20c2531034f2b4e6fb
Changing to avoid character corruption in endFile().

To avoid the occurrence of character corruption in endFile(),
I modified that convertValue() will be skipped when shift JIS characters.
Fix crash in MyHandler when sockets are not set.

-When going quickly in and out of the video view during an rtsp
streaming session, a race condition occurs and MyHandler tries to
connect to a socket that has been reset. To avoid this,
checks are added.
- If there are errors during setupTrack 1, it is no use
setting up track 2. It will cause new errors.
- No assert for socket connect since there is a normal
status check already.

Change-Id: Ie06221d6c0d78ce0449f76c782ed5120fa646bfd
avcenc: Prepend startcodes to output buffers

This makes the encoder output data that is similar to actual HW
encoders.

This also makes the encoder's output work in other decoders
when passing through directly. If feeding the encoded data
straight through to a decoder (such as in the EncodeDecodeTest
CTS test), the output from OMX.google.h264.encoder cannot be
decoded by e.g. OMX.Nvidia.h264.decode on a Nexus 7 or
OMX.SEC.avc.dec on a Galaxy S3. (The first frame can be somewhat
decoded by the sw decoder OMX.google.h264.decoder, but not properly.)

Change-Id: I6e16433a4a66936e3080723c8233681f53bd55e5
Camera service: fix deadlock

release lock before return from CameraService::dump

Change-Id: I89d75f13bf82490929eafa1da9e88e7023abfb49
Orig-Change-Id: I7cedc834d13e180c9c9f43fe5ffb955f0a0c4755
Signed-off-by: Kalle Lampila <kallex.lampila@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: 104720
Test suite for OMA DRM Forward Lock.

This suite contains forward lock
automatic test cases.

Change-Id: Ia1e81a91b4b8dc1bf3558a4aa06e90a955c6fbe6
RTSPSouce: add check for mHandler in release

fix the media server issue in RTSP release
duplicate quit msg may cause mHandler null and it may cause crash in onDisconnect

Change-Id: Ib04158603eea3fecc70035f4054729ef8ab40dc0
Author: Yi Wang <yi.a.wang@intel.com>
Signed-off-by: Yi Wang <yi.a.wang@intel.com>
Singed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 49222, 44103
NuPlayerRender: Fix uint32_t numFramesPendingPlayout overrun issue

Add protection to avoid uint32_t numFramesPendingPlayout overrun.
If overrun happens, the video will be post a large delay time casuing video frozen.

Change-Id: Ia5d3aa06a61d40ea08cec525ec315ce0858c8854
Author: Feng Xiao<fengx.xiao@intel.com>
Signed-off-by: Feng Xiao<fengx.xiao@intel.com>
Signed-off-by: Yi Wang<yi.a.wang@intel.com>
Singed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 48710, 27202
[PreProc]accoustics effects process

The purpose of this patch is to propagate the errors of WebRTC to upper layers

Change-Id: I87c6812b621768f04b4ad80a38fa5604ce97c7ed
Origin-Change-Id: I32781aad02c55a9077241b8ada0bb6c28ace737f
Signed-off-by: Andrei V. FOMITCHEV <andreix.fomitchev@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: 31726