diff options
| author | James Dong <jdong@google.com> | 2010-10-29 16:16:39 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-10-29 16:16:39 -0700 |
| commit | 1219ea3b7131b34a17b16a73a441a2d05008c040 (patch) | |
| tree | 923585c2800a9975df4afee745691dd3187d4a2e | |
| parent | e7a9c9010369d7672ac379347dc9c4441041fa89 (diff) | |
| parent | 42338ff07f926d86491a235f5d7af88aa01f959b (diff) | |
| download | frameworks_base-1219ea3b7131b34a17b16a73a441a2d05008c040.zip frameworks_base-1219ea3b7131b34a17b16a73a441a2d05008c040.tar.gz frameworks_base-1219ea3b7131b34a17b16a73a441a2d05008c040.tar.bz2 | |
Merge "Added some debugging log messages at stop()"
| -rw-r--r-- | media/libstagefright/MPEG4Writer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/media/libstagefright/MPEG4Writer.cpp b/media/libstagefright/MPEG4Writer.cpp index 9e79aa9..b3ed845 100644 --- a/media/libstagefright/MPEG4Writer.cpp +++ b/media/libstagefright/MPEG4Writer.cpp @@ -506,7 +506,7 @@ status_t MPEG4Writer::pause() { } void MPEG4Writer::stopWriterThread() { - LOGV("stopWriterThread"); + LOGD("Stopping writer thread"); { Mutex::Autolock autolock(mLock); @@ -517,6 +517,7 @@ void MPEG4Writer::stopWriterThread() { void *dummy; pthread_join(mThread, &dummy); + LOGD("Writer thread stopped"); } status_t MPEG4Writer::stop() { @@ -1228,6 +1229,7 @@ status_t MPEG4Writer::Track::pause() { } status_t MPEG4Writer::Track::stop() { + LOGD("Stopping %s track", mIsAudio? "Audio": "Video"); if (mDone) { return OK; } @@ -1239,6 +1241,7 @@ status_t MPEG4Writer::Track::stop() { status_t err = (status_t) dummy; + LOGD("Stopping %s track source", mIsAudio? "Audio": "Video"); { status_t status = mSource->stop(); if (err == OK && status != OK && status != ERROR_END_OF_STREAM) { @@ -1246,6 +1249,7 @@ status_t MPEG4Writer::Track::stop() { } } + LOGD("%s track stopped", mIsAudio? "Audio": "Video"); return err; } |
