summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-12-10 12:21:57 -0800
committerAndreas Huber <andih@google.com>2009-12-10 12:21:57 -0800
commitab0f94d68bcb74547c8191bd4c47a9ad1b7c7c48 (patch)
treed331b6693c40de12bd7220067da510542a6c35b1 /cmds
parentc54176addef15699a518b69cd6bbd40ffc95e72e (diff)
downloadframeworks_av-ab0f94d68bcb74547c8191bd4c47a9ad1b7c7c48.zip
frameworks_av-ab0f94d68bcb74547c8191bd4c47a9ad1b7c7c48.tar.gz
frameworks_av-ab0f94d68bcb74547c8191bd4c47a9ad1b7c7c48.tar.bz2
Don't count empty buffers when computing the frame rate.
Diffstat (limited to 'cmds')
-rw-r--r--cmds/stagefright/stagefright.cpp2
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);
}