Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: fix autorec maxcount handling, fixes #3423
  • Loading branch information
perexg committed Dec 20, 2015
1 parent 9d5d052 commit e14c134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dvr/dvr_autorec.c
Expand Up @@ -114,7 +114,7 @@ dvr_autorec_completed(dvr_entry_t *de, int error_code)
LIST_FOREACH(de, &dae->dae_spawns, de_autorec_link) {
if (de->de_sched_state != DVR_COMPLETED) continue;
if (dvr_get_filesize(de, 0) < 0) continue;
if (de_prev && de_prev->de_start > de->de_start)
if (de_prev == NULL || de_prev->de_start > de->de_start)
de_prev = de;
count++;
}
Expand Down

0 comments on commit e14c134

Please sign in to comment.