OSDN Git Service
Eino-Ville Talvala [Tue, 3 Sep 2013 20:29:28 +0000 (13:29 -0700)]
Camera2/3: Increase precapture start timeout
Currently, we only wait 200 ms for the HAL to switch to the precapture
state. This is insufficient at low preview frame rates (dark
conditions, ~10 fps), where a 3-request-deep HAL pipeline will take
300 ms to produce a precapture trigger output. In those cases, we
would prematurely skip the precapture sequence, causing bad quality
pictures.
Since this is a fallback timeout to prevent deadlock in case of a bad
HAL or framework implementation, increase the timeout to 1 second. Has
no impact on correctly-working implementations
Bug:
10430191
Change-Id: I08e99f8e7f3beb8f15dcee32632cdebfe3dca8b3
Jeff Tinker [Fri, 30 Aug 2013 23:05:00 +0000 (23:05 +0000)]
Revert "Enhancement for OnInfo callback on DRM Framework"
This reverts commit
5ff7836da0220b3097f36c8a5e82111816ebca62.
Fixes Fatal signal 6 (SIGABRT)" when playing or downloading a video
bug:
10542864
Change-Id: I7f81a41c3acdbeb571a514b3f65e7ba37d403cca
Eric Laurent [Sat, 31 Aug 2013 17:14:04 +0000 (17:14 +0000)]
Merge "Revert "Fix decoder EOS handling"" into klp-dev
Eric Laurent [Sat, 31 Aug 2013 02:22:29 +0000 (19:22 -0700)]
Revert "Fix decoder EOS handling"
This reverts commit
9da36a6c8df70a5c8179ac78fab33cfbb5078cb2.
Bug:
10571297.
Change-Id: I76f20fe34872ea54fce626077462fb86c8c3f02e
Eric Laurent [Fri, 30 Aug 2013 22:12:37 +0000 (15:12 -0700)]
audioflinger: offloaded tracks flush/pause order
Make sure that a flush received after a pause is forwarded
to the HAL after the pause.
Change-Id: Ib3221f70c59f8b3dbbac20b23104f6b779b75be0
Igor Murashkin [Fri, 30 Aug 2013 18:32:13 +0000 (18:32 +0000)]
Merge "camera: Fix deadlock when sending callbacks during disconnect" into klp-dev
Marco Nelissen [Fri, 30 Aug 2013 17:56:11 +0000 (17:56 +0000)]
Merge "Fix decoder EOS handling" into klp-dev
Marco Nelissen [Thu, 29 Aug 2013 16:31:26 +0000 (09:31 -0700)]
Fix decoder EOS handling
Conceptually it should be the same whether EOS is signalled on the last
buffer holding data, or an empty buffer that follows. Make it so that
this actually behaves the same for mp3, AAC and Vorbis.
b/
8747869
Change-Id: Idece8ef45689a3ffaf70fb45d19862d7b93b2f92
Eino-Ville Talvala [Fri, 30 Aug 2013 01:48:14 +0000 (01:48 +0000)]
Merge "Camera3: Be busy as soon as work arrives." into klp-dev
Igor Murashkin [Fri, 30 Aug 2013 00:43:01 +0000 (17:43 -0700)]
camera: Fix deadlock when sending callbacks during disconnect
Bug:
10552448
Change-Id: Ie93ba744ae6705aa657f980ae8e08ec624feeb39
Glenn Kasten [Fri, 30 Aug 2013 00:05:03 +0000 (00:05 +0000)]
Merge "Implement Track::getTimestamp()" into klp-dev
Glenn Kasten [Fri, 30 Aug 2013 00:04:50 +0000 (00:04 +0000)]
Merge "Add AudioFlinger::PlaybackThread::Track::getTimestamp()" into klp-dev
Glenn Kasten [Fri, 30 Aug 2013 00:04:37 +0000 (00:04 +0000)]
Merge "Add IAudioTrack::getTimestamp()" into klp-dev
Glenn Kasten [Thu, 29 Aug 2013 23:47:34 +0000 (23:47 +0000)]
Merge "New AudioTrack C++ API for audio timestamps" into klp-dev
Eric Laurent [Thu, 29 Aug 2013 23:29:35 +0000 (23:29 +0000)]
Merge "AudioPlayer: timestamp fixes for compress offload" into klp-dev
Eric Laurent [Thu, 29 Aug 2013 22:17:58 +0000 (22:17 +0000)]
Merge "AudioTrack: fix write retries for compressed audio" into klp-dev
Andy McFadden [Thu, 29 Aug 2013 21:41:16 +0000 (21:41 +0000)]
Merge "Add time limit to screenrecord" into klp-dev
Andy McFadden [Thu, 29 Aug 2013 21:41:07 +0000 (21:41 +0000)]
Merge "Notify the media scanner" into klp-dev
Eric Laurent [Thu, 29 Aug 2013 21:35:05 +0000 (14:35 -0700)]
AudioTrack: fix write retries for compressed audio
When the amount of frames that can be written to the buffer
is less than requested, AudioTrack::processAudioBuffer() estimates
the time needed to free the missing amount of frames and asks the
callback thread to sleep.
This behavior is not possible for compressed audio and should not
be enabled for offloaded tracks.
Change-Id: I5b657283cfba06254c9ac0ea9b447467cce7eb61
Haynes Mathew George [Mon, 5 Aug 2013 18:00:37 +0000 (11:00 -0700)]
AudioPlayer: timestamp fixes for compress offload
Use realtime queried from AudioTrack as the only time for compress
offload playback.
Change-Id: I314447637715c4864690c94173260165369146cb
Eino-Ville Talvala [Thu, 29 Aug 2013 19:46:18 +0000 (12:46 -0700)]
Camera3: Be busy as soon as work arrives.
RequestThread's internal busy flag (mPaused) was not being immediately
set when new work was submitted to it. This allowed for a race
condition where a capture() followed by an immediate
waitUntilDrained() would immediately return from the wait.
Set the mPaused flag to false immediately in capture() and
setStreamingRequest() to avoid this, instead of waiting until the end
of the next RequestThread iteration.
Bug:
10531739
Change-Id: I54a79fe5361d527ec717f41ad805e9b319a48cd8
Chong Zhang [Thu, 29 Aug 2013 18:58:07 +0000 (18:58 +0000)]
Merge "Set PREPARING flag after setDataSource_l()" into klp-dev
Jeff Tinker [Thu, 29 Aug 2013 18:18:06 +0000 (18:18 +0000)]
Merge "fix MediaDrm.isCryptoSchemeSupported(uuid)" into klp-dev
Glenn Kasten [Fri, 23 Aug 2013 20:53:56 +0000 (13:53 -0700)]
Implement Track::getTimestamp()
using a new timestamp latch in PlaybackThread, and
AudioTrackServerProxy::framesReleased() which returns mServer.
Change-Id: I1ebfba968c773faaab95648c272fd3ebd74718d6
Glenn Kasten [Mon, 26 Aug 2013 16:36:23 +0000 (09:36 -0700)]
Add AudioFlinger::PlaybackThread::Track::getTimestamp()
with a dummy implementation initially,
and use it in AudioFlinger::TrackHandle::getTimestamp()
Change-Id: I2da88fc52a135a7f0d9fd9538986e919dc8ccd3b
Glenn Kasten [Thu, 29 Aug 2013 16:01:02 +0000 (09:01 -0700)]
Add IAudioTrack::getTimestamp()
with dummy implementation in AudioFlinger::TrackHandle, and
implement AudioTrack::getTimestamp() using IAudioTrack.
Also document invariant that mAudioTrack and control block are always
non-0 after successful initialization.
Change-Id: I9861d1454cff7decf795d5d5898ac7999a9f3b7e
Glenn Kasten [Fri, 19 Jul 2013 23:33:58 +0000 (16:33 -0700)]
New AudioTrack C++ API for audio timestamps
This new API is intended to replace latency(), especially for A/V sync.
The application will receive periodic timestamp notifications. The period
is unspecified, but will likely be more frequent after a pause or stop,
set position, underrun, display on/off change, route change, or when audio
framework notices drift. It will be up to the higher level application
(e.g. Stagefright) to reconstruct a clock that updates more frequently.
The current latency() method doesn't indicate when latency changes
due to screen on/off state, route changes, etc.
Includes squahsed change-Id: I2082f8752040be0c234b1a6f1be2e269abf2ce7c
Dummy implementation of AudioTrack:getTimestamp()
Rename AudioTrack::Timestamp to AudioTimestamp.
Renaming and pulling up to a higher level allows more modules to use it.
Change-Id: Ibf7f6a207c3f8d8697f25ede2cd5200697fadb86
(cherry picked from commit
dd69eb893867634fd169c03204a6ad7c74b351e7)
Chong Zhang [Wed, 28 Aug 2013 23:48:35 +0000 (16:48 -0700)]
Set PREPARING flag after setDataSource_l()
Otherwise the reset_l() inside setDataSource_l() will get stuck
waiting for the PREPARING to be cleared.
Bug:
10426788
Change-Id: I7ccdf7abcea71cf150544c7cd3f4781e3a946b97
Jeff Tinker [Wed, 28 Aug 2013 23:40:41 +0000 (16:40 -0700)]
fix MediaDrm.isCryptoSchemeSupported(uuid)
1. Don't expect plugins to support an empty mimeType in isContentTypeSupported
2. Move the cts test mock drm plugin to the cts tree so it is always used
b/
10528466
Change-Id: I6023f6165b1e9d294986f7e5cd0896e056e376f1
Andy McFadden [Wed, 28 Aug 2013 22:22:11 +0000 (15:22 -0700)]
Add time limit to screenrecord
Recordings are now limited to 3 minutes. The time can be set lower
with the --time-limit option.
Bug
10529645
Change-Id: I6ac19b9da8d616d38262414c2e821d56efcec55d
Eric Laurent [Wed, 28 Aug 2013 17:43:16 +0000 (17:43 +0000)]
Merge "AudioTrack: fix unwanted underrun when restarting" into klp-dev
Eric Laurent [Wed, 28 Aug 2013 17:23:01 +0000 (10:23 -0700)]
AudioTrack: fix unwanted underrun when restarting
When restarting an AudioTrack from stopped state, it is necessary
to force refresh of mRemainingFrames by processAudioBuffer() as
the last write before stop() could be partial. No doing so will lead
into unnecessary sleep before filling the non contiguous part
of the buffer returned by obtainBuffer() when processAudioBuffer()
is executed for the first time after start().
Change-Id: Id703f8dc092a6f07c905eee194054b4a978f979d
Andy McFadden [Fri, 23 Aug 2013 20:49:38 +0000 (13:49 -0700)]
Notify the media scanner
Use an "am broadcast" command to notify the media scanner that
a new video file is available.
Bug
10096103
Change-Id: I8261d81d96832969ebb9031a9766c1b1f2a569ed
Eino-Ville Talvala [Tue, 27 Aug 2013 16:49:13 +0000 (16:49 +0000)]
Merge "Camera2: Add flush support" into klp-dev
Igor Murashkin [Mon, 26 Aug 2013 20:22:37 +0000 (20:22 +0000)]
Merge "camera2: Get rid of annoying "Reading a NULL string...." error message" into klp-dev
Jeff Tinker [Mon, 26 Aug 2013 16:09:03 +0000 (16:09 +0000)]
Merge "Enhancement for OnInfo callback on DRM Framework" into klp-dev
Takeshi Aimi [Wed, 11 Jul 2012 08:09:21 +0000 (17:09 +0900)]
Enhancement for OnInfo callback on DRM Framework
In DRM framework, plugins can transmit DrmInfoEvent to Java layer.
Although DrmInfoEvent has several entries, current implementation
can only convey integer and String. This change enables plugins
uto propagate a hashmap to Java layer. The hashmap can have
one or more Strings and one byte array as value.
Changes are made by Sony Corporation.
bug:
10459159
Change-Id: Ic19265d4ad3db4eda66a3c27e1e08873a8f2a4d7
(cherry picked from commit
4f782bf0cb69929ebf03de239e2c9bf8e82adf5e)
Igor Murashkin [Sat, 24 Aug 2013 00:47:06 +0000 (17:47 -0700)]
camera2: Get rid of annoying "Reading a NULL string...." error message
Bug:
10461464
Change-Id: Ie99f025db0e0e12c703f2d391e218b49330ee4dd
Chong Zhang [Fri, 23 Aug 2013 23:18:18 +0000 (23:18 +0000)]
Merge "wifi-display: pass session info to wifi display settings" into klp-dev
Eino-Ville Talvala [Wed, 14 Aug 2013 18:37:00 +0000 (11:37 -0700)]
Camera2: Add flush support
- On HAL2 devices, fall back to wait until idle
- On HAL3 devices, call HAL flush method
Bug:
9758581
Change-Id: Ie1c570a15f6590a1ee6c271e3b989c48079b468a
Chong Zhang [Fri, 23 Aug 2013 19:13:28 +0000 (19:13 +0000)]
Merge "MediaPlayer: add listener for raw track data" into klp-dev
Jeff Tinker [Thu, 22 Aug 2013 23:08:10 +0000 (23:08 +0000)]
Merge "Add ability to test supported content types to MediaDrm" into klp-dev
Jeff Tinker [Wed, 21 Aug 2013 18:59:23 +0000 (11:59 -0700)]
Add ability to test supported content types to MediaDrm
bug:
10244066
Change-Id: I317f05b146db962c271893f6208890a5a6c396f1
Eino-Ville Talvala [Wed, 21 Aug 2013 21:39:05 +0000 (14:39 -0700)]
Camera1: Rename setPreviewTexture to ...Target for clarity
Bug:
10312644
Change-Id: I19976188f0359bfd177209fb40145defdae9c740
Eino-Ville Talvala [Wed, 21 Aug 2013 20:57:21 +0000 (13:57 -0700)]
Camera1: Set preview to be asynchronous, and remove dead code
- Use the controlledByApp flag to make sure application-bound
preview buffer queue is asynchronous as before
- Remove setPreviewDisplay in service, since it is no longer in
the binder interface
- Rename setPreviewTexture to setPreviewTarget, to make it clear it's
the only game in town now. Rename only on the binder level and service
for now.
Bug:
10312644
Change-Id: Icd33a462022f9729a63dc65c69b755cb7969857e
Chong Zhang [Thu, 6 Jun 2013 19:42:59 +0000 (12:42 -0700)]
wifi-display: pass session info to wifi display settings
Bug:
9371882
Change-Id: I9e4b8c2154b03ce8ff3e14c465a5224bb6e8db9a
Eric Laurent [Tue, 20 Aug 2013 01:10:47 +0000 (01:10 +0000)]
Merge "AudioSystem: new audioflinger restart detection" into klp-dev
Eric Laurent [Thu, 18 Jul 2013 21:38:44 +0000 (14:38 -0700)]
AudioSystem: new audioflinger restart detection
Add a specific method to AudioSystem for AudioService to poll
for AudioFlinger service restart instead of relying on current
callback mechanism which is flaky.
Bug:
9693068.
Change-Id: Ie88bc9d25033503bc5cd2fa9d8c754d0f8045b8f
Jeff Brown [Mon, 19 Aug 2013 23:56:41 +0000 (23:56 +0000)]
Merge "Enforce permission for recording from remote submix." into klp-dev
Jeff Tinker [Mon, 19 Aug 2013 21:48:11 +0000 (14:48 -0700)]
am
29d06015: am
6e3ee310: am
31d49615: am
27b876d4: am
9bc40a2c: am
98603acb: am
36337f8f: am
7d72965f: am
60476336: Remove obsolete drm manager code
* commit '
29d060155e2c3e838fcadf303fcf2d1ecfb78710':
Remove obsolete drm manager code
Jeff Tinker [Mon, 19 Aug 2013 21:45:56 +0000 (14:45 -0700)]
am
6e3ee310: am
31d49615: am
27b876d4: am
9bc40a2c: am
98603acb: am
36337f8f: am
7d72965f: am
60476336: Remove obsolete drm manager code
* commit '
6e3ee310d90e30c928c9e29a4a07de4bcbf2855e':
Remove obsolete drm manager code
Jeff Tinker [Mon, 19 Aug 2013 21:39:15 +0000 (14:39 -0700)]
am
31d49615: am
27b876d4: am
9bc40a2c: am
98603acb: am
36337f8f: am
7d72965f: am
60476336: Remove obsolete drm manager code
* commit '
31d49615007372621ac3fba55e9e3aab48c873f9':
Remove obsolete drm manager code
Jeff Tinker [Mon, 19 Aug 2013 21:36:05 +0000 (14:36 -0700)]
am
27b876d4: am
9bc40a2c: am
98603acb: am
36337f8f: am
7d72965f: am
60476336: Remove obsolete drm manager code
* commit '
27b876d4cf78b262854b9f2aec26467f9323d3ad':
Remove obsolete drm manager code
Jeff Tinker [Mon, 19 Aug 2013 21:32:42 +0000 (14:32 -0700)]
am
9bc40a2c: am
98603acb: am
36337f8f: am
7d72965f: am
60476336: Remove obsolete drm manager code
* commit '
9bc40a2cfdd307074ef5c23ad444fc8a782bab84':
Remove obsolete drm manager code
Jeff Tinker [Mon, 19 Aug 2013 21:31:11 +0000 (14:31 -0700)]
am
98603acb: am
36337f8f: am
7d72965f: am
60476336: Remove obsolete drm manager code
* commit '
98603acbce87c3a451c8e4c26625048363c3f7f7':
Remove obsolete drm manager code
Jeff Tinker [Mon, 19 Aug 2013 21:27:45 +0000 (14:27 -0700)]
am
36337f8f: am
7d72965f: am
60476336: Remove obsolete drm manager code
* commit '
36337f8f1c4d7384cb1528205582148c85c69f4d':
Remove obsolete drm manager code
Jeff Tinker [Mon, 19 Aug 2013 21:24:50 +0000 (14:24 -0700)]
am
7d72965f: am
60476336: Remove obsolete drm manager code
* commit '
7d72965ff6a4bf9f91213fbdafcd12cfad8334e5':
Remove obsolete drm manager code
Jeff Tinker [Mon, 19 Aug 2013 21:21:48 +0000 (14:21 -0700)]
am
60476336: Remove obsolete drm manager code
* commit '
6047633622328711cc6b23667c8d6381bae179bf':
Remove obsolete drm manager code
Chong Zhang [Tue, 6 Aug 2013 16:44:47 +0000 (09:44 -0700)]
MediaPlayer: add listener for raw track data
Bug:
10326117
Change-Id: I2c0bdf8adc67b11f8dc633423bee66897548f181
Jeff Brown [Sat, 17 Aug 2013 03:19:26 +0000 (20:19 -0700)]
Enforce permission for recording from remote submix.
Bug:
10265163
Change-Id: I2395036bac6e10baeaf6ea4bc3093bd9dd98742d
Jeff Brown [Fri, 16 Aug 2013 01:06:37 +0000 (18:06 -0700)]
Remove call to enable/disable remote submix from test program.
The submix will be controlled automatically from now on based on
whether there is an active audio recorder.
Bug:
10265163
Change-Id: Iea8164182daa037066f60974b54597d20db4903b
Ruben Brunk [Sat, 17 Aug 2013 00:29:13 +0000 (00:29 +0000)]
Merge "Refactor CameraService to handle errors properly." into klp-dev
Ruben Brunk [Thu, 8 Aug 2013 20:07:18 +0000 (13:07 -0700)]
Refactor CameraService to handle errors properly.
Bug:
10361136
-Connect calls now return status_t error flags.
Change-Id: Idca453b111e5df31327f6c99ebe853bb2e332b95
Lajos Molnar [Fri, 16 Aug 2013 19:32:29 +0000 (19:32 +0000)]
Merge "Add MEDIA_STARTED/PAUSED/STOPPED events to media players" into klp-dev
Jeff Tinker [Mon, 22 Jul 2013 22:54:42 +0000 (15:54 -0700)]
Remove obsolete drm manager code
bug:
9545965
Change-Id: Ia6e09efa826b1349d027045e782980daeb7d7596
(cherry picked from commit
f355f18aa2cc1706761e373fe19298a9ccc9c75a)
Lajos Molnar [Thu, 15 Aug 2013 01:30:38 +0000 (18:30 -0700)]
Add MEDIA_STARTED/PAUSED/STOPPED events to media players
This is needed for the MediaTimeProvider java interface, so it does not
continually poll for current media time.
Note: NuPlayer and AwesomePlayer do not correctly handle stop (pause
instead), so for those we will signal PAUSED.
Signed-off-by: Lajos Molnar <lajos@google.com>
Change-Id: I3c61e1bda475f131323f475c18a42e3ec66c9ae1
Bug:
10326117
Andreas Huber [Thu, 15 Aug 2013 16:12:08 +0000 (16:12 +0000)]
Merge "You can now opt-in to having the video decoder push blank buffers to the" into klp-dev
Ying Wang [Thu, 15 Aug 2013 03:39:49 +0000 (20:39 -0700)]
Fix build.
Change-Id: If87636a654c8cfb2449e246df213fb24b08b4ad3
Mathias Agopian [Thu, 15 Aug 2013 00:09:17 +0000 (00:09 +0000)]
Merge "fix build. optional tests broke" into klp-dev
Mathias Agopian [Thu, 15 Aug 2013 00:08:40 +0000 (17:08 -0700)]
fix build. optional tests broke
Change-Id: Ifb38fb2a7bd9c3d6305726f8e6d661be05cdcf7e
Andy McFadden [Wed, 14 Aug 2013 23:25:59 +0000 (23:25 +0000)]
Merge "Another error check" into klp-dev
Andy McFadden [Wed, 14 Aug 2013 23:23:15 +0000 (23:23 +0000)]
Merge "Use destroyDisplay()" into klp-dev
Andy McFadden [Wed, 14 Aug 2013 22:08:29 +0000 (15:08 -0700)]
Another error check
Change-Id: I01ed5c0c7dcb520732d2856859bced31df5fbbb5
Andy McFadden [Wed, 14 Aug 2013 18:23:06 +0000 (11:23 -0700)]
Use destroyDisplay()
Use the new SurfaceComposerClient::destroyDisplay call to shut the
virtual display down.
Change-Id: I0225a44594abf427d386456622b23b01fdd1690f
Andreas Huber [Wed, 14 Aug 2013 17:28:14 +0000 (10:28 -0700)]
You can now opt-in to having the video decoder push blank buffers to the
surface on the transition from executing->idle by specifying the key
"push-blank-buffers-on-shutdown" with a value of 1 in the call to configure.
Change-Id: I1155fccf89f18e717728c985e590651597595515
Lajos Molnar [Wed, 14 Aug 2013 01:27:14 +0000 (01:27 +0000)]
Merge "Check adaptive playback support via CodecCapabilities" into klp-dev
Lajos Molnar [Tue, 6 Aug 2013 22:02:22 +0000 (15:02 -0700)]
Check adaptive playback support via CodecCapabilities
Added flags field to CodecCapabilities, so that applications
can query whether codecs support various features. For now
added one video-decoder feature:
kFlagSupportsAdaptivePlayback
Media playback applications can query it to see if a codec
supports seamless resolution changes, such as by supporting
dynamic output buffers.
Signed-off-by: Lajos Molnar <lajos@google.com>
Change-Id: I09da46e8ab6b8645fa2749e33128e49eda2e865b
Related-to-bug:
7093648
Andreas Huber [Tue, 13 Aug 2013 17:13:24 +0000 (17:13 +0000)]
Merge "Optionally repeat the previously submitted frame to the encoder" into klp-dev
Andreas Huber [Wed, 31 Jul 2013 20:50:42 +0000 (13:50 -0700)]
Optionally repeat the previously submitted frame to the encoder
if no new frame has been delivered by surface flinger within the timeout
interval.
Change-Id: I282f1b726dfe5646b178d7858d6f5d4f5a264fde
Andreas Huber [Tue, 13 Aug 2013 17:03:29 +0000 (17:03 +0000)]
Merge "Restore stagefright command line tool." into klp-dev
Andy McFadden [Tue, 13 Aug 2013 16:56:19 +0000 (09:56 -0700)]
Better error message
Attempt to create the output file before handing it to MediaMuxer,
which doesn't report file-open failures in a useful way.
Change-Id: Ie24ff577dd50e185b4eb72575684d23a46f38d3d
Andreas Huber [Tue, 13 Aug 2013 15:55:47 +0000 (08:55 -0700)]
Restore stagefright command line tool.
Change-Id: Ia17f48522f601d6a057ef3e1e8cd01f80a5c9951
Jeff Brown [Mon, 12 Aug 2013 23:59:55 +0000 (23:59 +0000)]
Merge "Fix potential leak of audio input handle." into klp-dev
Andreas Huber [Mon, 12 Aug 2013 17:08:23 +0000 (10:08 -0700)]
Support for "request-sync" parameter in ACodec
Also returns errors to caller instead of asserting...
Change-Id: Id3018655a2b3da4289167fba16af907350a511ae
Jeff Brown [Sat, 10 Aug 2013 01:32:30 +0000 (18:32 -0700)]
Fix potential leak of audio input handle.
The audio input handle is ultimately owned by the audio recorder
object but it could be dropped on the floor if an error occurred
before that object was fully initialized.
Rearranged some of the argument validation and merged getInput_l
with openRecord_l to simplify the code and prevent such a leak
from occurring.
Bug:
10265163
Change-Id: I124dce344b1d11c2dd66ca5e2c9aec0c52c230e2
Glenn Kasten [Thu, 8 Aug 2013 23:39:34 +0000 (23:39 +0000)]
Merge "Fix regression for AudioRecord streaming callback mode" into klp-dev
Andreas Huber [Thu, 8 Aug 2013 23:21:42 +0000 (16:21 -0700)]
am
bcd86896: am
d0f5664a: Merge "Handle undefined NAL type for h264 streaming"
* commit '
bcd86896e486e303d285e13477e0623b2a920e78':
Handle undefined NAL type for h264 streaming
Glenn Kasten [Thu, 8 Aug 2013 22:20:53 +0000 (15:20 -0700)]
Fix regression for AudioRecord streaming callback mode
The notification period (frequency of client wakeups) was broken in
streaming callback mode. Fast tracks were OK, but non-fast tracks with
normal latency weren't getting woken up at all.
Bug:
10222943
Change-Id: Ife9a2f57fa73c6eb921f1c5ba62de0bfcc20557b
Andreas Huber [Thu, 8 Aug 2013 15:56:37 +0000 (08:56 -0700)]
am
d0f5664a: Merge "Handle undefined NAL type for h264 streaming"
* commit '
d0f5664abb5a8d94ae13f63a5f3491b47383ee2f':
Handle undefined NAL type for h264 streaming
Andreas Huber [Thu, 8 Aug 2013 15:52:47 +0000 (15:52 +0000)]
Merge "Handle undefined NAL type for h264 streaming"
Glenn Kasten [Wed, 7 Aug 2013 17:19:36 +0000 (17:19 +0000)]
Merge "Cleanup comments for the new control block implementation"
Jeff Tinker [Wed, 7 Aug 2013 01:44:37 +0000 (01:44 +0000)]
Merge "Adds a drm resource busy error, removes some deprecated errors"
Lajos Molnar [Tue, 6 Aug 2013 23:55:31 +0000 (23:55 +0000)]
Merge "IOMX: add updateGraphicBufferInMeta method for metadata mode"
Mathias Agopian [Tue, 6 Aug 2013 23:06:09 +0000 (23:06 +0000)]
Merge "fix build"
Mathias Agopian [Tue, 6 Aug 2013 23:05:27 +0000 (16:05 -0700)]
fix build
Change-Id: I859bd75eb796b0cb8da30ad947776d3e38f3873f
Ying Wang [Tue, 6 Aug 2013 22:54:17 +0000 (15:54 -0700)]
Fix build. last attempt.
Change-Id: Ib955134f90b78cfc0d31272021ad5907a41df708
Lajos Molnar [Mon, 22 Jul 2013 19:57:43 +0000 (12:57 -0700)]
IOMX: add updateGraphicBufferInMeta method for metadata mode
This is used to set the handle in the metadata buffer that is
valid in the mediaserver process, as well as to keep a reference
for the graphic buffers in BufferMeta.
Change-Id: I46bb68d8bed894f357eeeb25368360d11b276634
Signed-off-by: Lajos Molnar <lajos@google.com>
Mathias Agopian [Fri, 2 Aug 2013 08:50:59 +0000 (01:50 -0700)]
separte producer and consumer interfaces
Bug:
9265647
Change-Id: Iefabc11e4bd2e2e8ffd31160476c450affe6629c
Glenn Kasten [Tue, 6 Aug 2013 17:32:40 +0000 (17:32 +0000)]
Merge "AudioRecord notification frames"
Glenn Kasten [Tue, 6 Aug 2013 16:49:16 +0000 (16:49 +0000)]
Merge "AudioRecord::openRecord_l use flags"