summaryrefslogtreecommitdiffstats
path: root/media
Commit message (Collapse)AuthorAgeFilesLines
* Add the "default" device to the device list as long as it detects the hardware.xians@chromium.org2012-03-121-11/+11
| | | | | | | | | BUG=117162 TEST=media_unittests Review URL: http://codereview.chromium.org/9621006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126116 0039d316-1c4b-4281-b951-d872f2087c98
* Create video and audio decoder threads on demand.tommi@chromium.org2012-03-1111-16/+75
| | | | | | | | | | | | | Instead of creating these worker threads when the decoder objects are instantiated, we now do it when Initialize is called. Doing this avoids spinning a video decoder thread for an audio tag. BUG=114699,116873 TEST=Thread count in the renderer process goes up by 3 and not 4 when an audio element is created. Review URL: https://chromiumcodereview.appspot.com/9632024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126077 0039d316-1c4b-4281-b951-d872f2087c98
* Roll ffmpeg DEPS. Add test cases for a couple issues.dalecurtis@google.com2012-03-101-6/+18
| | | | | | | | | | | | | | | ffmpeg_revision: http://src.chromium.org/viewvc/chrome/trunk/deps/third_party/ffmpeg/?view=log ffmpeg_hash: http://git.chromium.org/gitweb/?p=chromium/third_party/ffmpeg.git;a=commit;h=d70dcd6cce182fe5fe1ce47561e17890a1bae2b9 BUG=116927, 112976, 110839, 110838 TEST=Valgrind, ASAN. Review URL: https://chromiumcodereview.appspot.com/9664026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125969 0039d316-1c4b-4281-b951-d872f2087c98
* Rename StatisticsCallback to StatisticsCB and DataSource::ReadCallback to ↵xhwang@chromium.org2012-03-1031-206/+203
| | | | | | | | | | | | | | | ReadCB. To comply with naming convention in media code. Renaming only, no other changes. In rtc_video_decoder.cc, explicitly use media::VideoFrame so not to confuse with cricket::VideoFrame. BUG=none TEST=none Review URL: http://codereview.chromium.org/9634012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125959 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for --enable-threaded-compositing by makingfischman@chromium.org2012-03-092-11/+15
| | | | | | | | | | | RendererGpuVideoDecoderFactories compositor-thread-aware. BUG=112108 Review URL: http://codereview.chromium.org/9639005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125859 0039d316-1c4b-4281-b951-d872f2087c98
* Replace use of XKeycodeToKeysym() with XkbKeycodeToKeysym() in player_x11.scherkus@chromium.org2012-03-081-2/+2
| | | | | | | | | | BUG=117274 TEST=player_x11 comples with gcc 4.6.3 / ubuntu 12.04 TBR=bungeman@chromium.org Review URL: https://chromiumcodereview.appspot.com/9632006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125653 0039d316-1c4b-4281-b951-d872f2087c98
* Add AES decryptor and tests.xhwang@chromium.org2012-03-0824-34/+459
| | | | | | | | | | | For now we support decryption in video only. The first encryption key ID in ContentEncodings element will be used as the decryption key ID. Also we assume decryption key is the same as key ID. BUG=117060 TEST=test page with encrypted content plays; added media_unittest Review URL: http://codereview.chromium.org/9298021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125560 0039d316-1c4b-4281-b951-d872f2087c98
* Improves flaky unit tests on Windows and Mac OS X.henrika@chromium.org2012-03-072-27/+51
| | | | | | | | | | BUG=116961 TEST=media_unittests on Windows and Mac OS X Review URL: http://codereview.chromium.org/9625002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125415 0039d316-1c4b-4281-b951-d872f2087c98
* Moved the implementations of ReleaseOutputStream() and ReleaseInputStream() ↵xians@chromium.org2012-03-0717-521/+627
| | | | | | | | | | | | | | | to AudioManagerBase and let all the AudioManagerPlatforms inherit the same implementations. Also moved the MakeAudioOutputStream() and MakeAudioInputStream() to AudioManagerBase, separate the AUDIO_PCM_LINEAR mode and AUDIO_PCM_LOW_LATENCY mode into two different functions inside the AudioManagerPlatforms. So that the structure is clearer and also easier to deprecate the AUDIO_PCM_LINEAR for the future. Made the destructor of the AudioManagerPlatforms protected so it can be called by only the AudioManagerBase. BUG=116064 TEST=media_unittests Review URL: http://codereview.chromium.org/9570014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125389 0039d316-1c4b-4281-b951-d872f2087c98
* Add test files for AES decryptor.xhwang@chromium.org2012-03-072-0/+0
| | | | | | | | | | TBR=scherkus@chromium.org BUG=117060 TEST=these are test files Review URL: https://chromiumcodereview.appspot.com/9592036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125271 0039d316-1c4b-4281-b951-d872f2087c98
* Adds input volume control support for Windows platforms.henrika@chromium.org2012-03-069-107/+205
| | | | | | | | | | | This CL also adds a device_id input parameter to media::GetAudioInputHardwareSampleRate() and media::GetAudioInputHardwareChannelCount(). We need this new flexibility to be able to perform unit tests where the volume is modified for all supported devices. Without it, we will not be able to open the audio-input stream using the correct sample rate and channels count for all devices since all we can get information about is the default device. BUG=115013 TEST=media_unittests Review URL: http://codereview.chromium.org/9585010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125222 0039d316-1c4b-4281-b951-d872f2087c98
* WebM parser bug fixes for live streams.acolwell@chromium.org2012-03-067-35/+163
| | | | | | | | | | | | | | - Update ChunkDemuxer so kInfiniteDuration streams are not seekable. - Add support for Segment & Cluster elements of unknown size to WebMListParser. - Update WebMStreamParser to treat content without a Duration header as having kInfiniteDuration. BUG=116824 TEST=ChunkDemuxerTest.TestWebMFile_LiveAudioAndVideo, WebMParserTest.ReservedIds, WebMParserTest.ReservedSizes Review URL: http://codereview.chromium.org/9600028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125197 0039d316-1c4b-4281-b951-d872f2087c98
* Add a test file to simulate live WebM.acolwell@chromium.org2012-03-062-0/+2
| | | | | | | | | | TBR=acolwell@chromium.org BUG=116824 TEST=None Review URL: https://chromiumcodereview.appspot.com/9616018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125174 0039d316-1c4b-4281-b951-d872f2087c98
* Fold media::MessageLoopFactoryImpl into media::MessageLoopFactory.scherkus@chromium.org2012-03-069-138/+78
| | | | | | | | We haven't had a second implementation of the interface since MessageLoopFactory was added in r71548. Review URL: https://chromiumcodereview.appspot.com/9597016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125064 0039d316-1c4b-4281-b951-d872f2087c98
* Fix muted audio when playback rate != 1.0 or 0.0vrk@chromium.org2012-03-0612-381/+722
| | | | | | | | | | | | | | Rewrites the logic in AudioRendererAlgorithmBase to be able to output audio at any point of a sped-up/slowed down window, instead of only outputting audio in full multiples of windows. BUG=108239 TEST=media_unittests, manual testing on video test matrix Review URL: http://codereview.chromium.org/9395057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125052 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory leak in WebMContentEncodingsClient.xhwang@chromium.org2012-03-057-76/+152
| | | | | | | | | | | | | | | - Make ContentEncoding a class instead of a struct. - Remove ref count from ContentEncoding. - Revert r123446: "Suppress leak in WebMListParser" - Revert r123451: "Update suppression for 115606" - Revert r123499: "Suppress WebMContentEncodingsClient::OnListStart leak for drmemory." BUG=115606 TEST=media_unittest with HeapCheck Review URL: http://codereview.chromium.org/9474022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125024 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up audio-related utility functions to compute buffer sizesvrk@chromium.org2012-03-052-6/+3
| | | | | | | | | | | | | Renames SelectSamplesPerPacket() to GetHighLatencyOutputBufferSize() and moves it into audio_hardware.h, where its low-latency counterpart lies. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/9442005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124981 0039d316-1c4b-4281-b951-d872f2087c98
* Convert uses of int ms to TimeDelta in media.tedvessenes@gmail.com2012-03-052-5/+9
| | | | | | | | | | R=acolwell@chromium.org BUG=108171 Review URL: http://codereview.chromium.org/9582042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124971 0039d316-1c4b-4281-b951-d872f2087c98
* Convert uses of int ms to TimeDelta in media/audio.tedvessenes@gmail.com2012-03-034-6/+10
| | | | | | | | | | R=tommi@chromium.org BUG=108171 Review URL: http://codereview.chromium.org/9580038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124865 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Another round of unused forward declaration cleanup.thestig@chromium.org2012-03-031-3/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8598030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124808 0039d316-1c4b-4281-b951-d872f2087c98
* Updating Layout test analyzer.imasaki@google.com2012-03-0214-182/+242
| | | | | | | | | | | | | | It includes: * intoducing -z commandline option to show/not-show issue details * fix the issues discovered by gpylint * adding bug link and flakiness dashboard link to test expection file display BUG=109008,107773 TEST= unit test passes and run script locally. Review URL: https://chromiumcodereview.appspot.com/9476021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124746 0039d316-1c4b-4281-b951-d872f2087c98
* Change Clock::SetMaxTime() to be safe even in the presence of slow pipelines.fischman@chromium.org2012-03-023-5/+4
| | | | | | | | | | | | | | | | | Before this CL the contract of SetMaxTime was unsatisfiable; a clock client could check that the max_time it was about to set wasn't greater than Elapsed() before calling SetMaxTime(), but between the time that check was done and the DCHECK inside SetMaxTime, time could move forward! After this CL, SetMaxTime() is allowed to move the media_time_ backward and set the underflow_ bit if the pipeline is slow enough. BUG=113037,chromium-os:26939 TEST=A Debug binary on an underpowered ARM crosbook with no audio device plays back correctly. Review URL: http://codereview.chromium.org/9582017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124739 0039d316-1c4b-4281-b951-d872f2087c98
* Second attempt to land ffmpeg roll.dalecurtis@google.com2012-03-0120-114/+144
| | | | | | | | | | | | | | | | | Attempt 2 at landing http://codereview.chromium.org/9317096/ Same as before except for fixes in checkperms/ However, fixes have landed elsewhere for: - mp3 decode issue. - FrameRateNoVsyncCanvasInternalTest.fishbowl/0 BUG=110776 TEST=unittests, layouttests, trybots, perf tests... Review URL: https://chromiumcodereview.appspot.com/9447029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124501 0039d316-1c4b-4281-b951-d872f2087c98
* Adding Milestone in chromium bug hunter output file and email. Also, fix ↵imasaki@google.com2012-03-013-10/+18
| | | | | | | | | | | some minor issues relating to empty status. BUG=115503 TEST= locally executed the scripts and made sure it is working as intended. Review URL: https://chromiumcodereview.appspot.com/9452025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124468 0039d316-1c4b-4281-b951-d872f2087c98
* Replace a CHECK with some CHECK_LEs, to aid in debugging.wez@chromium.org2012-03-011-1/+2
| | | | | | | | | BUG=116138 Review URL: http://codereview.chromium.org/9514009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124372 0039d316-1c4b-4281-b951-d872f2087c98
* Fix race in Pipeline where video_decoder_ was accessed from multiple threads.tommi@chromium.org2012-02-291-5/+5
| | | | | | | | | | | | | | | | I moved the code that clears the variable to StopTask(). The problem was that all access to this variable except for inside Stop(), happens on the Pipeline thread, but was not protected by a lock. So, Stop() could be called and it could cause random crashes on the pipeline thread such as in the case I mention in the below bug. BUG=115299 TEST=follow repro steps in the bug report. Review URL: http://codereview.chromium.org/9536009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124208 0039d316-1c4b-4281-b951-d872f2087c98
* Exclude upsupported test from android build.nileshagrawal@chromium.org2012-02-291-0/+1
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/9514003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124175 0039d316-1c4b-4281-b951-d872f2087c98
* Adding microphone volume support to chrome in linux. Totally there are 3 ↵xians@chromium.org2012-02-2819-24/+709
| | | | | | | | | | | APIs are added: Get/SetMicVolume() and GetMaxMicVolume(). And a new AudioInputVolumeTest is also added to media_unittests. BUG=115087 TEST=media_unittests Review URL: http://codereview.chromium.org/9418042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123959 0039d316-1c4b-4281-b951-d872f2087c98
* Workaround for Windows-only crash inside delay load helper.enal@chromium.org2012-02-281-11/+43
| | | | | | | | | | | | | | | | | | | | | | Crash report shows access violation inside LoadLibraryExA() called from DelayLoadHelper2(), and we cannot figure out what exactly causes the problem. In theory it can be caused by Chrome terminating while we are initializing ffmpeg code, but I am not sure. Workaround is to call delay load helper to patch import tables during renderer initialization. We are loading ffmpeg DLL at this moment anyways but do not patch import tables. Extra overhead is negligeable compared to disk access time. Also fixed potential problem -- LoadLibraryEx() does not accept relative paths when used as we are using it. During normal startup we are getting absolute path, but customer can specify relative path as a command-line flag. Fix is to call Windows API GetFullPathName() to get rid of relative path. BUG=110983. Review URL: http://codereview.chromium.org/9450001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123865 0039d316-1c4b-4281-b951-d872f2087c98
* Add content encoding support to WebM demuxer.xhwang@chromium.org2012-02-2410-42/+674
| | | | | | | | | | BUG=none TEST=passed media_unittests Review URL: http://codereview.chromium.org/9084002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123422 0039d316-1c4b-4281-b951-d872f2087c98
* Add a bit of DLOGging for GPU video decode.fischman@chromium.org2012-02-241-0/+1
| | | | | | Review URL: http://codereview.chromium.org/9431040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123403 0039d316-1c4b-4281-b951-d872f2087c98
* Don't histogram negative VideoCodecProfile values.fischman@chromium.org2012-02-231-2/+5
| | | | | | Review URL: http://codereview.chromium.org/9430065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123334 0039d316-1c4b-4281-b951-d872f2087c98
* Increase the buffer size in AudioRendererImpl to fix muted playback ratevrk@google.com2012-02-232-0/+32
| | | | | | | | | | | | | | | | | | | This CL temporarily removes GetBufferSizeForSampleRate() and uses SelectSamplesPerPacket() to determine the size of samples_per_packet in AudioDevice. This restores the buffer size that AudioRendererImpl used prior to r113821. SelectSamplesPerPacket() calculates a much larger samples_per_packet value than GetBufferSizeForSampleRate(), so it fixes the issue described in 108239. This CL also does some mild refactoring to move audio_common.cc into audio_util.cc. BUG=108239 TEST=media_unittests,content_unittests, manual testing of different playback rates Review URL: https://chromiumcodereview.appspot.com/9416085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123292 0039d316-1c4b-4281-b951-d872f2087c98
* Add test file for WebM content encodings elements.xhwang@chromium.org2012-02-231-0/+0
| | | | | | | | | BUG=none TEST=this is a test data file Review URL: https://chromiumcodereview.appspot.com/9456002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123286 0039d316-1c4b-4281-b951-d872f2087c98
* Remove GetAudioManager and GetMediaStreamManager from ResourceContext. The ↵jam@chromium.org2012-02-231-8/+0
| | | | | | | | | | | reason is the content module should create all the concrete objects that it knows about, instead of depending on every embedder to do so. ResourceContext is then just the interfaces that it implements and which it provides on the IO thread. The AudioManager getter was a global, so I added a getter to the AudioManager class. MediaStreamManager now has its own static getter like other internal content classes on ResourceContext or BrowserContext. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9433006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123264 0039d316-1c4b-4281-b951-d872f2087c98
* Add texture target field to video frame (for use by native textures).sievers@chromium.org2012-02-234-4/+24
| | | | | | | | To be used by https://bugs.webkit.org/show_bug.cgi?id=78398. Review URL: https://chromiumcodereview.appspot.com/9416087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123255 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 123123 (probably caused a big perf regression -- http://crbug.com/115479,thakis@chromium.org2012-02-2320-143/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and possibly made frame rate tests fail: http://crbug.com/115477. Will revert the revert if it doesn't help.) - Fix media code to work with new ffmpeg. Once ffmpeg git, svn are updated to new ffmpeg, will update DEPS in this CL. Which when committed, should seal the deal for the ffmpeg roll. API Changes: avutil: SampleFormat->AVSampleFormat avutil: av_get_bits_per_sample_fmt -> av_get_bytes_per_sample avcodec: avcodec_open -> avcodec_open2(..., NULL) avcodec: avcodec_decode_video2(... AVPacket ...) -> const AVPacket. avformat: av_open_input_file -> avformat_open_input avformat: av_register_protocol2 -> ffurl_register_protocol avformat: av_close_input_file -> avformat_close_input(&...) avformat: av_find_stream_info -> avformat_find_stream_info(..., NULL) URLContext now has a url_open2 method as well, for now I've set this to NULL. Also fixes: - ffmpeg_unittests change threading to mirror ffmpeg_video_decoder. There's an issue where threading causes the last frames of a no-audio video to be clipped. It existed before this ffmpeg roll, but because threading was disabled by default in ffmpeg, we never noticed it. - ffmpeg_demuxer_tests: GetBitrate_UnsetInContainer_NoFileSize now passes. - New ffmpeg_unittests passes: sync0_ogv/FFmpegTest.Seek_Video/0, where GetParam() = "sync0.ogv" sync1_ogv/FFmpegTest.Seek_Video/0, where GetParam() = "sync1.ogv" sync2_ogv/FFmpegTest.Seek_Video/0, where GetParam() = "sync2.ogv" FFmpeg fixups here, https://chromiumcodereview.appspot.com/9325049/ New git repo here: http://git.chromium.org/gitweb/?p=chromium/third_party/ffmpeg.git;a=summary Merge+Patches diff: https://chromiumcodereview.appspot.com/9317107 BUG=110776 TEST=unittests, layouttests, etc. Trybots. Review URL: https://chromiumcodereview.appspot.com/9317096 TBR=dalecurtis@google.com Review URL: https://chromiumcodereview.appspot.com/9455018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123249 0039d316-1c4b-4281-b951-d872f2087c98
* Exclude media pipeline tests from android build.nileshagrawal@chromium.org2012-02-231-0/+2
| | | | | | | | | | | | They failed linking as we have already excluded FFmpegAudioDecoder. BUG= TEST= Review URL: http://codereview.chromium.org/9416077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123176 0039d316-1c4b-4281-b951-d872f2087c98
* Fix media code to work with new ffmpeg.dalecurtis@google.com2012-02-2220-115/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Once ffmpeg git, svn are updated to new ffmpeg, will update DEPS in this CL. Which when committed, should seal the deal for the ffmpeg roll. API Changes: avutil: SampleFormat->AVSampleFormat avutil: av_get_bits_per_sample_fmt -> av_get_bytes_per_sample avcodec: avcodec_open -> avcodec_open2(..., NULL) avcodec: avcodec_decode_video2(... AVPacket ...) -> const AVPacket. avformat: av_open_input_file -> avformat_open_input avformat: av_register_protocol2 -> ffurl_register_protocol avformat: av_close_input_file -> avformat_close_input(&...) avformat: av_find_stream_info -> avformat_find_stream_info(..., NULL) URLContext now has a url_open2 method as well, for now I've set this to NULL. Also fixes: - ffmpeg_unittests change threading to mirror ffmpeg_video_decoder. There's an issue where threading causes the last frames of a no-audio video to be clipped. It existed before this ffmpeg roll, but because threading was disabled by default in ffmpeg, we never noticed it. - ffmpeg_demuxer_tests: GetBitrate_UnsetInContainer_NoFileSize now passes. - New ffmpeg_unittests passes: sync0_ogv/FFmpegTest.Seek_Video/0, where GetParam() = "sync0.ogv" sync1_ogv/FFmpegTest.Seek_Video/0, where GetParam() = "sync1.ogv" sync2_ogv/FFmpegTest.Seek_Video/0, where GetParam() = "sync2.ogv" FFmpeg fixups here, https://chromiumcodereview.appspot.com/9325049/ New git repo here: http://git.chromium.org/gitweb/?p=chromium/third_party/ffmpeg.git;a=summary Merge+Patches diff: https://chromiumcodereview.appspot.com/9317107 BUG=110776 TEST=unittests, layouttests, etc. Trybots. Review URL: https://chromiumcodereview.appspot.com/9317096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123123 0039d316-1c4b-4281-b951-d872f2087c98
* Reimplement r122778 to fix BuildMediaStreamCollection without breaking HW ↵fischman@chromium.org2012-02-221-4/+0
| | | | | | | | video decode. Review URL: http://codereview.chromium.org/9372075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122950 0039d316-1c4b-4281-b951-d872f2087c98
* Replace several NOTREACHED(), NOTIMPLEMENTED() with DVLOG(1), all values are ↵dalecurtis@chromium.org2012-02-214-26/+41
| | | | | | | | | | | | | | checked later by (Audio|Video)DecoderConfig.IsValidConfig() Unifies frame configuration check between VideoFrame and VideoDecoderConfig. BUG=none TEST=unittests, regression tests. Review URL: http://codereview.chromium.org/9358013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122886 0039d316-1c4b-4281-b951-d872f2087c98
* Don't query the stream latency when setting up the input stream.xians@chromium.org2012-02-213-36/+5
| | | | | | | | | | | | | The code querying the stream latency can cause crash, this has been verified on the output side and resolved by removing the code. See cl: https://chromiumcodereview.appspot.com/9310004/ So we are doing the same things on input. Test=None Bug=109959 Review URL: http://codereview.chromium.org/9395008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122822 0039d316-1c4b-4281-b951-d872f2087c98
* always remove existing video decoders when a new video decoder is added.wjia@chromium.org2012-02-211-0/+4
| | | | | | Review URL: https://chromiumcodereview.appspot.com/9318011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122778 0039d316-1c4b-4281-b951-d872f2087c98
* Run CNS perf tests more than once to stabilize results.shadi@chromium.org2012-02-171-10/+21
| | | | | | | | | | | | | | | | This CL adds changes the perf suite to run each CNS test 3 times and report the median of results. Upon testing on the perf bot, this resulted in more stable results for most of the tests. BUG=111586 TEST=Ran on local bot and perf bot. Review URL: http://codereview.chromium.org/9372028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122432 0039d316-1c4b-4281-b951-d872f2087c98
* Minor fixes to compile media_unittests on android.nileshagrawal@chromium.org2012-02-162-1/+5
| | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/9405027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122343 0039d316-1c4b-4281-b951-d872f2087c98
* Flakiness cleanup: disable remaining flaky tests in src/evan@chromium.org2012-02-151-1/+1
| | | | | | | | | | | See https://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/fcec09fc659f39a6 BUG=114386,109405,38404 TBR=sky Review URL: http://codereview.chromium.org/9405024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122168 0039d316-1c4b-4281-b951-d872f2087c98
* Update DCHECKs in AlsaPcmOutputStream to account for NULL message loop.tommi@chromium.org2012-02-152-14/+23
| | | | | | | | TBR=xians Review URL: https://chromiumcodereview.appspot.com/9403027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122146 0039d316-1c4b-4281-b951-d872f2087c98
* Make AudioManager non-refcounted.tommi@chromium.org2012-02-1524-240/+181
| | | | | | | | | BUG=107087 TEST=media and content unit tests Review URL: https://chromiumcodereview.appspot.com/9382040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122102 0039d316-1c4b-4281-b951-d872f2087c98
* Add DataSource logging to player_x11.scherkus@chromium.org2012-02-154-30/+146
| | | | | | | | | | We issue the same read patterns regardless of whether the file lives on disk or over the network. Logging all DataSource operations helps us spot patterns that cause additional round trips when accessed over HTTP. DataSource logging can be enabled by passing --v=1 to player_x11. You can also force streaming read mode by passing --streaming to player_x11. Review URL: https://chromiumcodereview.appspot.com/9378016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122051 0039d316-1c4b-4281-b951-d872f2087c98
* Extends error handling for audio capture and rendering.henrika@chromium.org2012-02-131-1/+1
| | | | | | | | | | | | | | AudioDevice now uses OnRenderError() (instead of OnError()) and AudioInputDevice uses OnCaptureError(). This CL only enables these callbacks. A follow-up will add support for actual usage as well. BUG=none TEST=content_unittests Review URL: http://codereview.chromium.org/9378003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121729 0039d316-1c4b-4281-b951-d872f2087c98