summaryrefslogtreecommitdiffstats
path: root/libhb/hb.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-12-23 00:02:17 +0000
committerjstebbins <[email protected]>2009-12-23 00:02:17 +0000
commit84683fb1af90f1b5887b0149fa7962b26f8ce87f (patch)
tree0a6f3d1d66d61bbe8f389b2892c0f8095e560ecc /libhb/hb.c
parent2252eabba54132b98b11c86f3457b2a9e307d645 (diff)
add point-to-point encoding
allows frame and pts based start points. end points were already previously supported. New job variables pts_to_start and frame_to_start specify the start point. There can be a period during the encode where it has to search for the start point. During this period, libhb sets a new state HB_STATE_SEARCHING and sets progress and eta till start point found. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3039 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r--libhb/hb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/hb.c b/libhb/hb.c
index 3db173f0a..ad51962c5 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -1454,7 +1454,8 @@ void hb_set_state( hb_handle_t * h, hb_state_t * s )
hb_lock( h->pause_lock );
hb_lock( h->state_lock );
memcpy( &h->state, s, sizeof( hb_state_t ) );
- if( h->state.state == HB_STATE_WORKING )
+ if( h->state.state == HB_STATE_WORKING ||
+ h->state.state == HB_STATE_SEARCHING )
{
/* XXX Hack */
if (h->job_count < 1)