diff options
author | Andreas Huber <andih@google.com> | 2009-12-10 12:21:57 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2009-12-10 12:21:57 -0800 |
commit | ab0f94d68bcb74547c8191bd4c47a9ad1b7c7c48 (patch) | |
tree | d331b6693c40de12bd7220067da510542a6c35b1 /cmds/stagefright | |
parent | c54176addef15699a518b69cd6bbd40ffc95e72e (diff) | |
download | frameworks_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/stagefright')
-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); } |