diff options
author | John Stebbins <[email protected]> | 2017-01-16 14:54:13 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2017-01-16 14:54:13 -0800 |
commit | 922db9bec26e1def4c8ba60afb2147cc06ec524d (patch) | |
tree | ea985c488ed517cd84a850cbb45b344cb65bd22d /libhb/work.c | |
parent | d8aeda196a508952a230402787227b2640d4e884 (diff) |
libhb: force title rescan after completing a job encode (#488)
Fixes https://forum.handbrake.fr/viewtopic.php?f=12&t=35583
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/work.c b/libhb/work.c index 3dfa03469..8aa920860 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -92,6 +92,8 @@ static void work_func( void * _work ) while( !*work->die && ( job = hb_list_item( work->jobs, 0 ) ) ) { + hb_handle_t * h = job->h; + hb_list_rem( work->jobs, job ); hb_list_t * passes = hb_list_init(); @@ -143,6 +145,10 @@ static void work_func( void * _work ) hb_job_close(&job); } hb_list_close(&passes); + + // Force rescan of next source processed by this hb_handle_t + // TODO: Fix this ugly hack! + hb_force_rescan(h); } free( work ); |