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