summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-01-20 21:17:27 +0000
committerjstebbins <[email protected]>2010-01-20 21:17:27 +0000
commitc5f4eea4c283771274b22ccf80fbb2af7e6f681f (patch)
tree61be212bf1ce2a8895ba185261ccabf9f87af442 /libhb
parent8d85eac5e739572e79f846059991ad31e9cd6774 (diff)
fix cancel during p-to-p search
when canceling, video sync was closed, but audio sync was stuck waiting on a condition variable. so force audio sync to wake up when video sync closes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3078 b64f7644-9d1e-0410-96f1-a4d463321fa5
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 );