getPositionUsec() returns int64_t, not uint32_t, so it would truncate
after 71 minutes. Also the check ANDROID_UNKNOWN_TIME always failed.
Change-Id: I3152d7715dfe4b67a5fad6985c6717c7a802b464
// fill level is ratio of how much has been played + how much is
// cached, divided by total duration
- uint32_t currentPositionUsec = getPositionUsec();
+ int64_t currentPositionUsec = getPositionUsec();
if (currentPositionUsec == ANDROID_UNKNOWN_TIME) {
// if we don't know where we are, assume the worst for the fill ratio
currentPositionUsec = 0;