Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
timeshift: do not change mono_play_time when already in TS_PLAY
  • Loading branch information
perexg committed Jan 3, 2016
1 parent 8c58cd4 commit 1480391
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/timeshift/timeshift_reader.c
Expand Up @@ -945,11 +945,13 @@ void *timeshift_reader ( void *p )
} else {
cur_speed = 100;
tvhtrace("timeshift", "reader - set TS_PLAY");
ts->state = TS_PLAY;
ts->dobuf = 1;
if (mono_play_time != mono_now)
tvhtrace("timeshift", "update play time (pause) - %"PRId64, mono_now);
mono_play_time = mono_now;
if (ts->state != TS_PLAY) {
ts->state = TS_PLAY;
ts->dobuf = 1;
if (mono_play_time != mono_now)
tvhtrace("timeshift", "update play time (pause) - %"PRId64, mono_now);
mono_play_time = mono_now;
}
}
tvhlog(LOG_DEBUG, "timeshift", "ts %d sob speed %d last time %"PRId64, ts->id, cur_speed, last_time);
pause_time = last_time;
Expand Down

0 comments on commit 1480391

Please sign in to comment.