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); }