diff options
author | John Stebbins <[email protected]> | 2017-04-15 13:20:21 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-04-15 13:22:55 -0600 |
commit | bb92ab00e37bdb87b528b1901d956c1f24417387 (patch) | |
tree | f327eb191c83b6ffad38ad32c8d144f6b0582ee5 /libhb/work.c | |
parent | 52d4c21b22cfc91b63a680aa7e475cc0ca6012cb (diff) |
decsrt: fix p-to-p start time after seeking
Reader can skip data at the beginning of the file. We were not
informing decsrt how much was skipped when pts_to_start caused the skip.
Fixes https://forum.handbrake.fr/viewtopic.php?f=11&t=36258
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 ) { |