Uninitialized pointer can cause crash.

mpAudioTrack should be initialized in any case.
If getOutputSamplingRate returns ERROR, this won't be initialized.
As a result, deleting this field in dtor can cause crash.

Change-Id: I950d353361b19635302339dac35752a2514d2d80
Signed-off-by: You Kim <you.kim72@gmail.com>
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
libcameraservice: Fix build in ISO C++11 mode

Change log macro define so it can't be confused for a C++11 string
literal

Change-Id: Idcc8085735177aa3313fdea66dc0736cca749f9b
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE

The change I7370d6e59a7ef26dfb284a8b058d5ab2e0a42ccf caused a regression
in SoundPool looping when using SoundPool's streaming implementation.
This reverts a portion of that change.

Bug: https://code.google.com/p/android/issues/detail?id=58113
Bug: 10171337
Change-Id: I8af0dc8683a7c7f225c80f0eb4d39770667b52e5
Merge "Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE"
am 943917c4: (-s ours) Merge "Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE"

* commit '943917c41f447fdceab6ce75e00c05551072000b':
  Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE
am 7473e356: (-s ours) am 943917c4: (-s ours) Merge "Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE"

* commit '7473e356f5b7de6b67aef3b34faa6ddb1c054060':
  Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE
am b8689b31: Support for "request-sync" parameter in ACodec

* commit 'b8689b31813f55cbc1bf8e9ca0d46a9ee113e38a':
  Support for "request-sync" parameter in ACodec
am fe9611bd: Merge "Fix potential leak of audio input handle." into klp-dev

* commit 'fe9611bd65a8d968d6512f6a83078ac064ec8e6e':
  Fix potential leak of audio input handle.
Added support for 3GPP meta data atoms

3GPP metadata is not supported, only iTunes Metadata
Format is supported.

Change-Id: I78b41c88788d5a43800c936e0ac0f98424515c62
am 46052913: Better error message

* commit '46052913f307b1561f1661bb776fa29c0775758c':
  Better error message
am 1e0b0808: Merge "Restore stagefright command line tool." into klp-dev

* commit '1e0b080825a169c6ac655f11a798ff177575608c':
  Restore stagefright command line tool.
am cd06d357: Merge "Optionally repeat the previously submitted frame to the encoder" into klp-dev

* commit 'cd06d357ed4fcde991aa55dc97317d97cb287332':
  Optionally repeat the previously submitted frame to the encoder
am 7f76a81b: Merge "Check adaptive playback support via CodecCapabilities" into klp-dev

* commit '7f76a81b18ade3158ae27015637074ce08e837b2':
  Check adaptive playback support via CodecCapabilities
Reconcile with klp-release - do not merge

Change-Id: I4bdda8ab19e05b9e74dba9094cb6f36af09d58d2
am 69b5e38c: Merge "Use destroyDisplay()" into klp-dev

* commit '69b5e38ca1af5696da1c00627d2e64f7db00d2e1':
  Use destroyDisplay()
am 99a2297e: Merge "Another error check" into klp-dev

* commit '99a2297e4f9746cd5efc3aa3731d17052f32e058':
  Another error check
am c13a958f: Merge "fix build. optional tests broke" into klp-dev

* commit 'c13a958fba83dae63a8cf23b76b36a8fc8580aef':
  fix build. optional tests broke
am c85a986a: Fix build.

* commit 'c85a986af84962515c10499faab3dc8f9a0948d4':
  Fix build.
am 75c16dde: Merge "You can now opt-in to having the video decoder push blank buffers to the" into klp-dev

* commit '75c16dde986e16ac5fd4d34b06b0cc6a90679866':
  You can now opt-in to having the video decoder push blank buffers to the