diff options
author | John Stebbins <[email protected]> | 2016-01-19 12:26:35 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-01-19 12:26:35 -0700 |
commit | 2eef7441c3bf670d4392c3cbcf887c77a0354aef (patch) | |
tree | 3fa7642cd768cac2f4d166dbf90a5ee56e3e367c /libhb/sync.c | |
parent | 41e238c5f34d30a7d07c455d0de8334edb35ec90 (diff) |
libhb: fix hang during subtitle scan
Diffstat (limited to 'libhb/sync.c')
-rw-r--r-- | libhb/sync.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/sync.c b/libhb/sync.c index dadf1c26a..5520603bb 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -630,6 +630,12 @@ int syncVideoWork( hb_work_object_t * w, hb_buffer_t ** buf_in, pv->common->start_found = 1; // Unblock anybody waiting on this threads last PTS setSyncPTS(pv, INT64_MAX, 0); + if (job->indepth_scan) + { + // During subtitle scan, sync is the end of the pipeline. + // Terminate job when EOF reached. + *w->done = 1; + } return HB_WORK_DONE; } |