Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
timeshift: fix time init for reader
  • Loading branch information
perexg committed Dec 30, 2015
1 parent ebf0e19 commit 49ab691
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/timeshift/timeshift_reader.c
Expand Up @@ -646,7 +646,8 @@ void *timeshift_reader ( void *p )
pause_time = cur_file->last;
last_time = pause_time;
} else {
last_time = atomic_add_s64(&ts->last_time, 0);
pause_time = atomic_add_s64(&ts->last_time, 0);
last_time = pause_time;
}
pthread_mutex_unlock(&ts->rdwr_mutex);
mono_play_time = mono_now;
Expand Down Expand Up @@ -728,8 +729,7 @@ void *timeshift_reader ( void *p )
cur_file->roff = cur_file->size;
last_time = cur_file->last;
} else {
tvhlog(LOG_ERR, "timeshift", "ts %d failed to get current file", ts->id);
skip = NULL;
last_time = atomic_add_s64(&ts->last_time, 0);
}
pthread_mutex_unlock(&ts->rdwr_mutex);
}
Expand Down

0 comments on commit 49ab691

Please sign in to comment.