OSDN Git Service

make sure HB_STATE_WORKING always gets set for a job
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 24 Apr 2010 20:24:38 +0000 (20:24 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 24 Apr 2010 20:24:38 +0000 (20:24 +0000)
commit0b26c6c2d4033989b2307b22c187715b2c0039fb
tree3c85bcf52f56713fd512b9a90b4bcf7b4eb5448e
parent71526baf1d8096998655dfed865e9d5ac1f69e3f
make sure HB_STATE_WORKING always gets set for a job
very short video, or video that has no valid frames, can cause UpdateState
in sync.c to never be called.  This is the only way the sequence_id would
ever be set, so when the ui sees HB_STATE_WORKDONE, it could not look up
the job in it's queue based on the sequence_id causing it to never be
marked as complete.

git-svn-id: svn://localhost/HandBrake/trunk@3261 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb/work.c