Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
timeshift: fix wrong time position when LIVE, fixes #3505
  • Loading branch information
perexg committed Jan 20, 2016
1 parent fe15797 commit 735cd18
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/timeshift/timeshift_reader.c
Expand Up @@ -483,10 +483,14 @@ static void timeshift_fill_status

start = _timeshift_first_time(ts, &active);
end = ts->buf_time;
if (current_time < 0)
current_time = 0;
if (current_time > end)
if (ts->state <= TS_LIVE) {
current_time = end;
} else {
if (current_time < 0)
current_time = 0;
if (current_time > end)
current_time = end;
}
status->full = ts->full;
tvhtrace("timeshift", "ts %d status start %"PRId64" end %"PRId64
" current %"PRId64" state %d",
Expand Down

0 comments on commit 735cd18

Please sign in to comment.