libstagefright: fix the duration "00:00" for some httplive link

if the playlist does not end by '\n', player can not show
the correction duration

Change-Id: I6dd9abfce32a1ef7b7d6ed157c966fce3c190389
Author: Yi Wang <yi.a.wang@intel.com>
Signed-off-by: Yi Wang <yi.a.wang@intel.com>
Signed-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: 48555
Fix compilation warning: incorrect format specifier for type 'ssize_t'.

warning: format '%ld' expects argument of type 'long int',
but argument 7 has type 'ssize_t {aka int}' [-Wformat]

Change-Id: I823835a26320a3abb82f8dff9fbe82e5132e7556
Signed-off-by: Scott Fan <fancp2007@gmail.com>
libstagefright: [Reworked] Fix incorrectness nPortIndex value for QueryCodec

http://review.cyanogenmod.org/#/c/32358/ was intended to fix
issues with OMX Components failing on ME722 (OMAP3).
This patch was working fine on OMAP3 devices and was required
to fix issues DSP MMU FAULTS. It has been reverted with patch
http://review.cyanogenmod.org/44486 which again broke OMX on
OMAP3.

Implement a Workaround for OMAP using OMAP_ENHANCEMENT

Log for this issue observed on P970 (OMAP3) during Gallery
Thumbnail Generation: http://pastebin.com/qRTpm7RN

DmmMap():1600 DSPProcessor_ReserveMemory() failed - error 0xfffffffb

Change-Id: Ifd0c784e354c6c00401686cc0f2188842df9496c