Fix bug in use of getPositionUsec()
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
diff --git a/src/android/android_AudioSfDecoder.cpp b/src/android/android_AudioSfDecoder.cpp
index 5908189..1a50ccb 100644
--- a/src/android/android_AudioSfDecoder.cpp
+++ b/src/android/android_AudioSfDecoder.cpp
@@ -696,7 +696,7 @@
// 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;