summaryrefslogtreecommitdiffstats
path: root/media
Commit message (Collapse)AuthorAgeFilesLines
* In order to recover from video lagging behind audio, drop avc framesAndreas Huber2011-09-168-44/+155
| | | | | | that are not referenced by other frames before feeding them into the decoder. Change-Id: I822190af8f8329567bff8da1ea23136d0a765481
* Various improvements to nuplayer playbackAndreas Huber2011-09-1612-63/+149
| | | | | | | | | | | | | | | | | | | | - Drastically cut down the number of times we supply the AudioSink with data by estimating the time until the sink would run out of data and then scheduling a refill in advance of that. - Use a dedicated looper for video decoders since they are currently taking too long to return from OMX_FillThisBuffer (bug 5325201) - Revise thread priorities for the OMX dispatcher and software codecs, instead of running them at ANDROID_PRIORITY_AUDIO, they now only run at ANDROID_PRIORITY_FOREGROUND - Since threads created by pthread_create inherit all of the parent threads attributes including thread priority, briefly reset thread priority to ANDROID_PRIORITY_FOREGROUND before instantiating OMX components and then restore it. Change-Id: If9332a3a20dad5485333d68c11de0d2d5d3fffc3
* Merge "Change an assert failure due to unsupported level by HW AVC decoder ↵James Dong2011-09-141-9/+10
|\ | | | | | | and report the error to applications"
| * Change an assert failure due to unsupported level by HW AVC decoder and ↵James Dong2011-09-131-9/+10
| | | | | | | | | | | | | | report the error to applications Change-Id: I522a994981d86329ccc86c3b536b561dc6e40eeb related-to-bug: 5300618
* | Merge "Issue 5298399: Lost speech after a crash in gTalk."Eric Laurent2011-09-131-12/+14
|\ \
| * | Issue 5298399: Lost speech after a crash in gTalk.Eric Laurent2011-09-131-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | Fixed problem in AudioTrack::restoreTrack_l() causing a permanent failure if the IAudioTrack interface to AudioFlinger could not be restored at the first attempt. Change-Id: I039d4fe2dca8d3baf71f1a6c51119f27a67b6611
* | | Merge "Support .avi tracks that have a sample size of 1, i.e. samples != chunks"Andreas Huber2011-09-132-14/+56
|\ \ \
| * | | Support .avi tracks that have a sample size of 1, i.e. samples != chunksAndreas Huber2011-09-132-14/+56
| | |/ | |/| | | | | | | | | | | | | | | | | | | Assume for now that all chunks are the same size, i.e. have the same number of samples. Change-Id: Ib8a7dfeb16cc3e5be199ff9d98b68dd0b9c23eb8 related-to-bug: 5279872
* | | Don't post position updates too frequentlyAndreas Huber2011-09-132-3/+17
|/ / | | | | | | | | | | | | i.e. don't hog my message queue. related-to-bug: 5284760 Change-Id: I8e2d36a11dbee1567b18ed13dc5257a65c6eeda7
* | Merge "Turn an another assertion into a runtime error in ACodec's ↵Andreas Huber2011-09-121-22/+18
|\ \ | | | | | | | | | implementation"
| * | Turn an another assertion into a runtime error in ACodec's implementationAndreas Huber2011-09-121-22/+18
| | | | | | | | | | | | | | | Change-Id: I6779b29f200b90d088273ab3204724ef3d8d59bd related-to-bug: 5284760
* | | Increase the avi extractor's confidence slighly over mp3'sAndreas Huber2011-09-121-1/+5
|/ / | | | | | | | | | | | | | | So that we don't accidentally identify a .avi file containing an mp3 track as an mp3 file. Change-Id: I73495b80cbb5bc1007bf810f2db453c9f175171b related-to-bug: 5288189
* | Make MediaScanner skip certain directoriesGuang Zhu2011-09-091-1/+59
| | | | | | | | | | | | | | | | | | | | The list of directories to skip are configurable via setprop. The main motivation is that some test data folder takes long time to scan, and media scanner may compete for CPU time against perf tests therefore skewing the results. Bug: 5263115 Change-Id: I568213e2a4babf6033021c1d336ef0347c0e3315
* | Merge "Don't check mFilledBuffers whether it is empty or not when the port ↵James Dong2011-09-091-3/+8
|\ \ | |/ |/| | | reconfiguration is not meant for buffer reallocation"
| * Don't check mFilledBuffers whether it is empty or not when the port ↵James Dong2011-09-091-3/+8
| | | | | | | | | | | | | | reconfiguration is not meant for buffer reallocation Change-Id: Iee9b18449bce9d7565ab5cc7f9e999484051196c related-to-bug: 5233843
* | Merge "AudioTrack: extend callback thread sleep time"Eric Laurent2011-09-081-1/+6
|\ \
| * | AudioTrack: extend callback thread sleep timeEric Laurent2011-09-081-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | Do not force wake up the AudioTrack thread every 10ms if no timed events (loop, markers..) have to be processed. This will help reduce power consumption. Change-Id: Icb425b13800690008dd07c27ffac84739e3dbba3
* | | Merge "Always set geometry in queuebuffer"Pannag Sanketi2011-09-081-4/+5
|\ \ \
| * | | Always set geometry in queuebufferPannag Sanketi2011-09-081-4/+5
| |/ / | | | | | | | | | | | | | | | | | | The queuebuffer could return early due to timestamp issues. Need to set the geometry even in that case. Change-Id: I04d7cd1df3996d640c269285398c0042923ba920
* | | Audio player must not be used as a timesource before it's started.Andreas Huber2011-09-082-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | Otherwise it'll trigger a division-by-zero exception since the audio sample rate is as yet unknown. Change-Id: I0793aa7c1c348ffa2611272bb646eff6ecf6ff53 related-to-bug: 5242451
* | | Merge "Bug 5270905 fix MediaPlayer with IStreamSource"Glenn Kasten2011-09-071-0/+1
|\ \ \
| * | | Bug 5270905 fix MediaPlayer with IStreamSourceGlenn Kasten2011-09-071-0/+1
| | |/ | |/| | | | | | | Change-Id: Ia8a6381a6c88b4a0a1378aab03f5275f0fa1125a
* | | Merge "Fixing bug in SurfaceMediaSource_test"Pannag Sanketi2011-09-071-5/+19
|\ \ \ | |_|/ |/| |
| * | Fixing bug in SurfaceMediaSource_testPannag Sanketi2011-09-021-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | The test was making EGL calls once disconnected. Instead of calling "disconnect" directly on the Surface, and EGL calls should be made to that effect. Change-Id: I21468ac8cbc2cb3145a49269e32a884736cd452e
* | | Apparently keyframe status in audio tracks of .webm/.mkv files is unreliableAndreas Huber2011-09-071-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | fortunately in all our supported audio encodings we can treat every frame as a keyframe. Change-Id: I32f21d0077bbae7ef9efe725dd351baf531179e2 related-to-bug: 5263837
* | | Merge "Stop metadata retriever from dereferencing a NULL pointer if"Andreas Huber2011-09-071-2/+14
|\ \ \ | |_|/ |/| |
| * | Stop metadata retriever from dereferencing a NULL pointer ifAndreas Huber2011-09-061-2/+14
| | | | | | | | | | | | | | | | | | | | | the media extractor failed to initialize (malformed or unsupported content) Change-Id: Icfad4e9eeb8d6713ad12eee7979ab30b696c06e0 related-to-bug: 5263840
* | | Revert "To make SniffMP3() more concrete so that we can remove false-positve ↵James Dong2011-09-061-16/+15
| | | | | | | | | | | | | | | | | | | | | | | | responses from MPEG-PS streams." This reverts commit 983ab88e117fcbda9370b8f4ba94271d37149672. related-to-bug: 5231309
* | | Merge "Issue 5247986: Battery drain due to audio wakelock"Eric Laurent2011-09-061-4/+21
|\ \ \ | |/ / |/| |
| * | Issue 5247986: Battery drain due to audio wakelockEric Laurent2011-09-061-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem occurs when activating or deactivating A2DP connection while SoudPool has a channel active. This can happen quite frequently now that the UI sound effects are enabled by default. If PCM data is remaining in the AudioTrack buffer when it is restroyed and re-created on the new AudioFlinger output thread, this data is flushed. As a consequence, no underrun or request for new data callback is sent to SoundPool and the sound channel remains active for ever as the end of the sample is never detected. Change-Id: I13e0c11e4ce3f83bff7f58d347ca814b6a86712b
* | | Merge "Handle setDataSource failures properly. #5261671"Dave Burke2011-09-061-9/+9
|\ \ \
| * | | Handle setDataSource failures properly. #5261671Dave Burke2011-09-061-9/+9
| | |/ | |/| | | | | | | Change-Id: Iea0aa474d1939db23da9aabdfae2081e834f30d9
* | | Merge "Don't overwrite pending port setting change if there are more than ↵James Dong2011-09-061-2/+4
|\ \ \ | |/ / |/| | | | | one port setting change event."
| * | Don't overwrite pending port setting change if there are more than one port ↵James Dong2011-09-011-2/+4
| | | | | | | | | | | | | | | | | | | | | setting change event. Change-Id: I3413f5235b191031252aa3785f5aaef00caef1ce related-to-bug: 5122512
* | | Fix issue 5252593: any app can restart the runtimeEric Laurent2011-09-021-1/+7
| |/ |/| | | | | | | | | Replace null device address string by empty sting. Change-Id: I285c35f3345334e6d2190493b1a8a5aca1a361a4
* | Properly serialize access to FileSource::getSize by acquiring the mutexAndreas Huber2011-09-021-0/+2
| | | | | | | | | | | | | | | | Both ::getSize and ::read call into lseek64, if this happens simultaneously from multiple threads the results are undefined if not properly serialized. Change-Id: I737cafebd836f3d8eb702beac557b4731f69c6f6 related-to-bug: 5196490
* | Require INTERNET permission for network-based content.Dave Burke2011-09-025-173/+131
|/ | | | | | Bug #1870981 Change-Id: Ia3ad166390c4d60cea19c3783895b078a2c4c15f
* Merge "Guard the audio notifications with a separate lock to avoid deadlocks ↵Andreas Huber2011-09-012-18/+17
|\ | | | | | | during reset."
| * Guard the audio notifications with a separate lock to avoid deadlocks during ↵Andreas Huber2011-09-012-18/+17
| | | | | | | | | | | | | | reset. Change-Id: I9a97372e1f777d1cbd6774cac2ed34b4b8cd9392 related-to-bug: 5179827
* | Signal an error when encountering a malformed .ts stream.Andreas Huber2011-09-011-13/+33
|/ | | | | Change-Id: I3ab0215419214b652573945403eb45eb09d41aff related-to-bug: 5114811
* Merge "I have one HLS stream that switches stream PIDs from one bandwidth to ↵Andreas Huber2011-08-315-27/+101
|\ | | | | | | the next"
| * I have one HLS stream that switches stream PIDs from one bandwidth to the nextAndreas Huber2011-08-315-27/+101
| | | | | | | | | | | | | | this change intends to support its very limited case and signals an error in all other cases of unexpected PID changes that we cannot recover from. Change-Id: Icbfdf9fe7461969e2a8781ed416f54d891dd789a
* | Merge "Discontinuities are only signalled on streams that have been ↵Andreas Huber2011-08-312-32/+26
|\ \ | |/ | | | | identified, i.e."
| * Discontinuities are only signalled on streams that have been identified, i.e.Andreas Huber2011-08-312-32/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | those that have a queue. This ensures that the player doesn't observe discontinuities that don't match up across streams. Also, make sure output buffers arriving from the decoder to be rendered are sent back to the decoder if we started flushing. Finally, don't parse TS packets for streams we don't support. And don't allocate memory for them. Change-Id: I708e0de4cba8110a62e4c8ceb1e5702430d5d2bb
* | Merge "Update SurfaceMediaSource_test to not use pbuffer configs"Pannag Sanketi2011-08-311-30/+16
|\ \
| * | Update SurfaceMediaSource_test to not use pbuffer configsPannag Sanketi2011-08-301-30/+16
| | | | | | | | | | | | | | | | | | | | | | | | SurfaceMediaSource_test now does not use pbuffer configs to create a surface. Always uses a window config. Also, cleaned up the test a bit. Change-Id: Idda40dcb8474249eccaa8d2dad20ee840d2dd484
* | | Merge "Fix a crash where the EOS was signalled but some output buffer were ↵James Dong2011-08-311-1/+1
|\ \ \ | | | | | | | | | | | | still pending."
| * | | Fix a crash where the EOS was signalled but some output buffer were still ↵James Dong2011-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | pending. Change-Id: Ide111264501441b51bb10629ae2021accf9e1fb5 related-to-bug: 5234126
* | | | Merge "Fix SurfaceMediaSource timestamp handling."Eino-Ville Talvala2011-08-311-2/+26
|\ \ \ \
| * | | | Fix SurfaceMediaSource timestamp handling.Eino-Ville Talvala2011-08-301-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Was not basing timestamps on startTimeUs. Now synchronizes properly with audio. Bug: 4510826 Change-Id: I613db0aa91e51fc75d120e65540e742d8ab2ae43