Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: recorder - update the running variables from broadcast at start,…
… issue #5256
  • Loading branch information
perexg committed Oct 15, 2018
1 parent 3f74523 commit 5c14193
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/dvr/dvr_rec.c
Expand Up @@ -1586,6 +1586,17 @@ dvr_thread(void *aux)
real_start = dvr_entry_get_start_time(de, 0);
tvhtrace(LS_DVR, "%s - recoding thread started for \"%s\"",
idnode_uuid_as_str(&de->de_id, ubuf), lang_str_get(de->de_title, NULL));
if (!running_disabled && de->de_bcast) {
real_start = gclk();
switch (de->de_bcast->running) {
case EPG_RUNNING_PAUSE:
atomic_set_time_t(&de->de_running_pause, real_start);
/* fall through */
case EPG_RUNNING_NOW:
atomic_set_time_t(&de->de_running_start, real_start);
break;
}
}
dvr_thread_global_unlock(de);

TAILQ_INIT(&backlog);
Expand Down

0 comments on commit 5c14193

Please sign in to comment.