diff options
author | James Dong <jdong@google.com> | 2011-01-19 13:57:06 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-19 13:57:06 -0800 |
commit | fc37018a9040f9b0f7cf4dac6d6fc5a5bdd6c287 (patch) | |
tree | 38d0b3a0e7158b0bf5506fd5f6ff89cd2c7535df /media | |
parent | 5383d077ed79e9fec95361046fcd7491ee9a0fd4 (diff) | |
parent | da58076a6b973e9dd6c22c5508328b63842949c1 (diff) | |
download | frameworks_base-fc37018a9040f9b0f7cf4dac6d6fc5a5bdd6c287.zip frameworks_base-fc37018a9040f9b0f7cf4dac6d6fc5a5bdd6c287.tar.gz frameworks_base-fc37018a9040f9b0f7cf4dac6d6fc5a5bdd6c287.tar.bz2 |
Merge "Logging the duration range from different media tracks for recording" into honeycomb
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/MPEG4Writer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/media/libstagefright/MPEG4Writer.cpp b/media/libstagefright/MPEG4Writer.cpp index 06c4c98..a47ee3a 100644 --- a/media/libstagefright/MPEG4Writer.cpp +++ b/media/libstagefright/MPEG4Writer.cpp @@ -590,6 +590,7 @@ status_t MPEG4Writer::stop() { status_t err = OK; int64_t maxDurationUs = 0; + int64_t minDurationUs = 0x7fffffffffffffffLL; for (List<Track *>::iterator it = mTracks.begin(); it != mTracks.end(); ++it) { status_t status = (*it)->stop(); @@ -601,6 +602,14 @@ status_t MPEG4Writer::stop() { if (durationUs > maxDurationUs) { maxDurationUs = durationUs; } + if (durationUs < minDurationUs) { + minDurationUs = durationUs; + } + } + + if (mTracks.size() > 1) { + LOGD("Duration from tracks range is [%lld, %lld] us", + minDurationUs, maxDurationUs); } stopWriterThread(); |