summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-09-05 20:01:14 +0000
committerdynaflash <[email protected]>2007-09-05 20:01:14 +0000
commit5d4117bccd9ce796e102842270726eae9fcf07e5 (patch)
treeeaba13aa4509c81e30969d5ceeda0e19d8fbebad /libhb
parenta963935e4d220ec9153573cef8f9f1b12654f0c3 (diff)
MacGui: New Active Queue implementation courtesy of travistex
- Thanks travistex! - queue is now in a separate window - queue currently shows jobs grouped together as one encode, which is configurable - queue now shows currently encoding job, which is independently cancellable without losing the rest of the queue. - can start and pause encoding in the queue window - queue uses its own nib - progress status needs work - This has a way to go, but needed to get checked in as it changes the current xcode project structure. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@925 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/common.h5
-rw-r--r--libhb/hb.c1
-rw-r--r--libhb/hb.h1
3 files changed, 7 insertions, 0 deletions
diff --git a/libhb/common.h b/libhb/common.h
index 0fc36473d..12558871e 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -104,6 +104,11 @@ const char * hb_mixdown_get_short_name_from_mixdown( int amixdown );
*****************************************************************************/
struct hb_job_s
{
+#if JOB_GROUPS
+ /* ID assigned by UI so it can lump jobs together */
+ int sequence_id;
+#endif
+
/* Pointer to the title to be ripped */
hb_title_t * title;
diff --git a/libhb/hb.c b/libhb/hb.c
index 94206e053..fbcd81043 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -796,6 +796,7 @@ void hb_start( hb_handle_t * h )
{
/* XXX Hack */
h->job_count = hb_list_count( h->jobs );
+ h->job_count_permanent = h->job_count;
hb_lock( h->state_lock );
h->state.state = HB_STATE_WORKING;
diff --git a/libhb/hb.h b/libhb/hb.h
index 547718280..6f8af2aee 100644
--- a/libhb/hb.h
+++ b/libhb/hb.h
@@ -82,6 +82,7 @@ void hb_set_size( hb_job_t *, int ratio, int pixels );
/* Handling jobs */
int hb_count( hb_handle_t * );
hb_job_t * hb_job( hb_handle_t *, int );
+hb_job_t * hb_current_job( hb_handle_t * h );
void hb_add( hb_handle_t *, hb_job_t * );
void hb_rem( hb_handle_t *, hb_job_t * );