summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-10-29 16:01:06 -0700
committerJames Dong <jdong@google.com>2010-10-29 16:07:44 -0700
commitcb09c03450bb09304ad5afd2d223254bf2e6e38c (patch)
tree814030199542e2d1fcb2691a58cb9f8349ba7be8 /media
parent05ea6434ed399395e2dbe9f68abb44f04b274cb0 (diff)
downloadframeworks_av-cb09c03450bb09304ad5afd2d223254bf2e6e38c.zip
frameworks_av-cb09c03450bb09304ad5afd2d223254bf2e6e38c.tar.gz
frameworks_av-cb09c03450bb09304ad5afd2d223254bf2e6e38c.tar.bz2
Added some debugging log messages at stop()
There are so many cases where the codecs just could not stopped ... Change-Id: If9ff261fcd4726c2ee21ec7c9336ca9c2917d399
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/MPEG4Writer.cpp6
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;
}