summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
Diffstat (limited to 'libhb')
-rw-r--r--libhb/sync.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/sync.c b/libhb/sync.c
index 58fba19dc..31c9583ab 100644
--- a/libhb/sync.c
+++ b/libhb/sync.c
@@ -197,6 +197,11 @@ void syncVideoClose( hb_work_object_t * w )
hb_job_t * job = pv->job;
hb_sync_video_t * sync = &pv->type.video;
+ // Wake up audio sync if it's still waiting on condition.
+ pv->common->pts_offset = 0;
+ pv->common->start_found = 1;
+ hb_cond_broadcast( pv->common->next_frame );
+
if( sync->cur )
{
hb_buffer_close( &sync->cur );