diff options
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libhb/work.c b/libhb/work.c index 1358bc12e..9062111e5 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -1927,6 +1927,13 @@ void hb_work_loop( void * _w ) } } } + else if (w->fifo_in == NULL) + { + // If this work object is a generator (no input fifo) and it + // generated no output, it may be waiting for status from + // another thread. Yield so that we don't spin doing nothing. + hb_yield(); + } } if ( buf_out ) { |