Support going back 30 seconds if less than 30 seconds have been played. closes #285

This commit is contained in:
daniel oeh 2014-03-28 20:49:24 +01:00
parent 1048939f69
commit 7dec032d2c
1 changed files with 2 additions and 3 deletions

View File

@ -385,14 +385,13 @@ public class PlaybackServiceMediaPlayer {
/**
* Seeks to the specified position. If the PSMP object is in an invalid state, this method will do nothing.
* Invalid time values (< 0) will be ignored.
* @param t The position to seek to in milliseconds. t < 0 will be interpreted as t = 0
* <p/>
* This method is executed on the caller's thread.
*/
private void seekToSync(int t) {
if (t < 0) {
if (AppConfig.DEBUG) Log.d(TAG, "Received invalid value for t");
return;
t = 0;
}
playerLock.lock();