If media player position makes no sense, get position from media

This commit is contained in:
Martin Fietz 2015-09-27 13:55:48 +02:00
parent d03c54d6fb
commit d037a8b901

View File

@ -584,6 +584,9 @@ public class PlaybackServiceMediaPlayer implements SharedPreferences.OnSharedPre
|| playerStatus == PlayerStatus.PREPARED
|| playerStatus == PlayerStatus.SEEKING) {
retVal = mediaPlayer.getCurrentPosition();
if(retVal <= 0 && media != null && media.getPosition() > 0) {
retVal = media.getPosition();
}
} else if (media != null && media.getPosition() > 0) {
retVal = media.getPosition();
}