diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-12-10 13:11:50 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-12-10 13:11:50 -0800 |
commit | df08a8102aa0721afec6df5db8f5742f5542473c (patch) | |
tree | 60ef16d36721fae8046aa32df9a9623e77d380cd | |
parent | 20352a300f84516ef615a023b7134733682b3223 (diff) | |
parent | ab0f94d68bcb74547c8191bd4c47a9ad1b7c7c48 (diff) | |
download | frameworks_av-df08a8102aa0721afec6df5db8f5742f5542473c.zip frameworks_av-df08a8102aa0721afec6df5db8f5742f5542473c.tar.gz frameworks_av-df08a8102aa0721afec6df5db8f5742f5542473c.tar.bz2 |
Merge change If0d04246 into eclair-mr2
* changes:
Don't count empty buffers when computing the frame rate.
-rw-r--r-- | cmds/stagefright/stagefright.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp index 76ec54b..376f3d9 100644 --- a/cmds/stagefright/stagefright.cpp +++ b/cmds/stagefright/stagefright.cpp @@ -173,7 +173,7 @@ static void playSource(OMXClient *client, const sp<MediaSource> &source) { break; } - if ((n++ % 16) == 0) { + if (buffer->range_length() > 0 && (n++ % 16) == 0) { printf("."); fflush(stdout); } |