summaryrefslogtreecommitdiffstats
path: root/libhb/sync.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-09-26 13:41:44 -0700
committerJohn Stebbins <[email protected]>2016-09-26 13:41:44 -0700
commit38710f772d395b0aa7c97d77befca80b23a1b52c (patch)
tree42938c86c9e26f311605855067bef4d087edb5e4 /libhb/sync.c
parente2ec4209d76abdcaea3d4bfc587c2da7d3213da6 (diff)
sync: fix off-by-one error
Diffstat (limited to 'libhb/sync.c')
-rw-r--r--libhb/sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/sync.c b/libhb/sync.c
index 1f33db816..e869089a3 100644
--- a/libhb/sync.c
+++ b/libhb/sync.c
@@ -241,7 +241,7 @@ static int fillQueues( sync_common_t * common )
static void signalBuffer( sync_stream_t * stream )
{
- if (hb_list_count(stream->in_queue) < stream->max_len ||
+ if (hb_list_count(stream->in_queue) <= stream->max_len ||
stream->done || stream->common->job->done ||
*stream->common->job->die)
{