From f0d04246f40b3f87d361451f9ebc2feb7b5318de Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Thu, 10 Dec 2009 12:21:57 -0800 Subject: [PATCH] Don't count empty buffers when computing the frame rate. --- cmds/stagefright/stagefright.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp index 76ec54b390cdc..376f3d9b839c5 100644 --- a/cmds/stagefright/stagefright.cpp +++ b/cmds/stagefright/stagefright.cpp @@ -173,7 +173,7 @@ static void playSource(OMXClient *client, const sp &source) { break; } - if ((n++ % 16) == 0) { + if (buffer->range_length() > 0 && (n++ % 16) == 0) { printf("."); fflush(stdout); }