dashplayer: Fix to avoid crash during back to back playback

stop call on source added to avoid crash during back to
back playback

Change-Id: I5bcbac2ba1c131c4d0e322ecd876a1d1021cba9f
CRs-Fixed: 450679
mm-video: vdec: Notify display about the format of video playback

An H.264 clip may have SPS+PPS that indicates the clip is
interlaced. However, the subsequent frame data may be
progressive. In this case, display is not updated about the
progressive content, it continues to display the video as
if it was interlaced.
With this change, we are now notifying display about the
Interlace/Progressive format of video playback by calling
setMetaData API for each buffer during handling of Interlace
Extradata

Change-Id: I0f3f11ba21ffc659b0a54c1494c2aa72fdd367a7
CRs-Fixed: 406941
mm-video: vdec: Amend logic to send playback error

During playback of an erroneous clip or a clip with SPS/PPS
occuring more than 288 times before the first IDR is queued,
playback error was being reported. This was being done for
non arbitrary bytes mode only. Now handle this case for all
frame packing modes.

Change-Id: I3b289eae61b9007355db98929cc542c140ae660c
CRs-fixed: 458875
mm-video: vdec: Remove genlock lib dependency

With MR1 release, the use of genlock is deprecated.
Remove genlock lib dependency from the makefile.

CRs-fixed: 449736
Change-Id: I4e1fd58a1b64d9e80da63d2b0ea752eaf03bc277
Merge "mm-video: vdec: Remove genlock lib dependency"
Merge "mm-video: vdec: Notify display about the format of video playback"
Merge "dashplayer: Fix to avoid crash during back to back playback"
vidc:venc: Reject changing number of B-frames dynamically

The number of B-frames is not expected to be changed
at run time. The dynamic intra period settings are
allowed to change the number of P-frames and not B-frames.
This change will reject if number of B-frames is changed
in dynamic intra period setting.

Change-Id: I5c5c168270bdb49a1533d5ffc46ff811c714d21a
CRs-fixed: 416057
mm-video: vidc: Suppress non-fatal error messages

These messages are non-fatal and appear frequently
during the video session. Hence suppressing them.

Change-Id: I6528c467cafe8fa409ea1217b7113b075ed28a2d
CRs-Fixed: 389408
mm-video: vidc: allocate color conversion buffers as uncached

If the c2d buffers are allocated as cached, CPU may not read
updated data written by c2d hardware. This would need an explicit
invalidate.
Or allocate these buffers as uncached to avoid this issue.
CRs-Fixed: 460460

Change-Id: I87e0ebf7105261b34edbff7b8778d7ed2b9ef391
QCTimedText: Avoid recycling parcel while parsing parcel

Text sample parcels are obtained from global parcel pool
and should be recycled only once in jni.

Change-Id: Ie8fd65da4cadfd846e5543da5b40eb78193e8d86
Merge "mm-video: vdec: Amend logic to send playback error"
Merge "QCTimedText: Avoid recycling parcel while parsing parcel"
Merge "mm-video: vidc: allocate color conversion buffers as uncached"
Merge "vidc:venc: Reject changing number of B-frames dynamically"
Merge "mm-video: vidc: Suppress non-fatal error messages"
mm-video: Return correct value from extract_rbsp

Sometimes, extract_rbsp is returning a value of type
uint32 while the actual return type is a bool.
In such a scenario, last 8 bits of return value is
interpreted as zero at the caller occasionally.
This is resulting in playback issues in arbitrary
bytes mode. Returning correct value fixes the issue.

CRs-fixed: 458922
Change-Id: Ie956338211486d5a9699cf6e7e8b8a2653ea1214
DashPlayer:call unregisterHandler in DashPlayer, avoid memory leak

AHandler objects in mediaplayer registred with ALooper
but did not call unregister at shutdown.

Change-Id: If9140d30ace0423c8181a1a64707ddcdc448d525
CRs-Fixed: 461906
Merge "mm-video: Return correct value from extract_rbsp"
mm-video: vidc: Close ION_IOC_MAP fd before closing ION device fd

Changes were made to free output buffer function where ION_IOC_MAP
fd is closed before closing ION device fd.

CRs-Fixed: 382450
Change-Id: I1e567ebc7679f502822113e535f7070ca5b2aea5