Abort the port poking if socket not available

If a RTSP stream is aborted shortly after the connection request,
the status message from the server may be received after
interrupting the connection. In that case an attempt to resolve
the current IP address when no socket is available will cause
force closing. This can happen if a server is quite slow. In this
fix assumption that the socket exists is replaced by handling the
situation when the socket is not available.

Change-Id: I0ed25deaffa460bf2c35c2130ef29bc3f0654db4
libstagefright: remove 10ms polling in AwesomePlayer

AwesomePlayer will wake up every 10ms while video is playing.

This patch will remove the 10ms polling.

Change-Id: Iae3ec6dac7ab5722c708b44e019d3aba09c3aea7
Author: Richard Tang <richard.tang@intel.com>
Signed-off-by: Richard Tang <richard.tang@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: 34320

Conflicts:

	media/libstagefright/AwesomePlayer.cpp
libstagefright: Optimize h263/mpeg4 assambler to reduce frame dropping in the assambler layer.

If current rtp packet lost, when submitting the last access unit to construct a
video frame it will set the last access unit to be damaged and will drop it. It
is the google orignal design. But if the last access unit is a whole frame it will
cause an additional frame dropping. So use "M" marker to detect the frame boundary,
if the last accecc unit "M" is set, we don't drop it, this can improve streaming
video quality when rtp packet dropping too much.

Change-Id: I895ef7fd86fbdc391ba5e84e6dd68ee2fc87e3b8
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: 49120, 23827, 26068
Patches related to Matroska Extractor.

Video Frame drops seen during playback of certain mkv files
and mediaserver crash issue (mka extractor fatal error) have
been fixed with these patches.

Change-Id: Ida6f03fa855679e632917a7d4359906face31262
Author: Gurudatta Bhakte <gurudattax.bhakte@intel.com>
Signed-off-by: Gurudatta Bhakte <gurudattax.bhakte@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: 48377, 24170, 27388