Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: Fix Important priority handling, fixes #2989
  • Loading branch information
perexg committed Jul 3, 2015
1 parent 9ee9d02 commit b6d4dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dvr/dvr_rec.c
Expand Up @@ -84,7 +84,7 @@ dvr_rec_subscribe(dvr_entry_t *de)
assert(de->de_s == NULL);
assert(de->de_chain == NULL);

if(de->de_pri > 0 && de->de_pri < ARRAY_SIZE(prio2weight))
if(de->de_pri >= 0 && de->de_pri < ARRAY_SIZE(prio2weight))
weight = prio2weight[de->de_pri];
else
weight = 300;
Expand Down

2 comments on commit b6d4dda

@narspt
Copy link

@narspt narspt commented on b6d4dda Apr 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@perexg please note that this bug is still present on the 4.0 branch, it makes Important recordings have 300 weight instead of 500 as it should.

@perexg
Copy link
Contributor Author

@perexg perexg commented on b6d4dda Apr 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cherry-picked. Thanks.

Please sign in to comment.