diff options
| author | Andreas Huber <andih@google.com> | 2010-08-05 11:46:04 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-08-05 11:46:04 -0700 |
| commit | 0a3858b0de236e262aa9d3906086ea8bfe554a4f (patch) | |
| tree | 8641d504c6f6cccf7baed01d45d6e9506f773f0a /media/libmedia | |
| parent | 0645f9699c2bf6b636e87711b7beebdc0eb955e6 (diff) | |
| parent | 1f513d8821670a33d6361ea521b6756163a3f9bf (diff) | |
| download | frameworks_base-0a3858b0de236e262aa9d3906086ea8bfe554a4f.zip frameworks_base-0a3858b0de236e262aa9d3906086ea8bfe554a4f.tar.gz frameworks_base-0a3858b0de236e262aa9d3906086ea8bfe554a4f.tar.bz2 | |
am 1f513d88: am c17f35dd: Merge "Support for Gtalk video, includes AMR/H.263 assembler and packetization support, extensions to MediaRecorder to stream via RTP over a pair of UDP sockets as well as various fixes to the RTP implementation." into gingerbread
Merge commit '1f513d8821670a33d6361ea521b6756163a3f9bf'
* commit '1f513d8821670a33d6361ea521b6756163a3f9bf':
Support for Gtalk video, includes AMR/H.263 assembler and packetization support, extensions to MediaRecorder to stream via RTP over a pair of UDP sockets as well as various fixes to the RTP implementation.
Diffstat (limited to 'media/libmedia')
| -rw-r--r-- | media/libmedia/mediarecorder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/mediarecorder.cpp b/media/libmedia/mediarecorder.cpp index 5adc116..9d53c25 100644 --- a/media/libmedia/mediarecorder.cpp +++ b/media/libmedia/mediarecorder.cpp @@ -181,7 +181,7 @@ status_t MediaRecorder::setOutputFormat(int of) LOGE("setOutputFormat called in an invalid state: %d", mCurrentState); return INVALID_OPERATION; } - if (mIsVideoSourceSet && of >= OUTPUT_FORMAT_AUDIO_ONLY_START) { //first non-video output format + if (mIsVideoSourceSet && of >= OUTPUT_FORMAT_AUDIO_ONLY_START && of != OUTPUT_FORMAT_RTP_AVP) { //first non-video output format LOGE("output format (%d) is meant for audio recording only and incompatible with video recording", of); return INVALID_OPERATION; } |
