Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: Fix regression - stop time, fixes #2834, fixes #2835
  • Loading branch information
perexg committed May 10, 2015
1 parent f59c0bf commit e1f9b29
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/dvr/dvr_db.c
Expand Up @@ -894,13 +894,15 @@ static dvr_entry_t *_dvr_entry_update
int save = 0;

if (!dvr_entry_is_editable(de)) {
if (stop < dispatch_clock)
stop = dispatch_clock;
if (stop < de->de_start)
stop = de->de_start;
if (stop != de->de_stop) {
de->de_stop = stop;
save = 1;
if (stop > 0) {
if (stop < dispatch_clock)
stop = dispatch_clock;
if (stop < de->de_start)
stop = de->de_start;
if (stop != de->de_stop) {
de->de_stop = stop;
save = 1;
}
}
if (stop_extra && (stop_extra != de->de_stop_extra)) {
de->de_stop_extra = stop_extra;
Expand Down

0 comments on commit e1f9b29

Please sign in to comment.