summaryrefslogtreecommitdiffstats
path: root/macosx/InstantHandBrake/HBCore.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/InstantHandBrake/HBCore.m')
-rw-r--r--macosx/InstantHandBrake/HBCore.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/macosx/InstantHandBrake/HBCore.m b/macosx/InstantHandBrake/HBCore.m
index cf84a071c..3d502b64c 100644
--- a/macosx/InstantHandBrake/HBCore.m
+++ b/macosx/InstantHandBrake/HBCore.m
@@ -119,6 +119,17 @@ NSString *HBCoreMuxingNotification = @"HBCoreMuxingNotification";
}
/**
+ * Removes all jobs from the queue.
+ */
+
+- (void) removeAllJobs
+{
+ hb_job_t * job;
+ while( ( job = hb_job( hb_handle, 0 ) ) )
+ hb_rem( hb_handle, job );
+}
+
+/**
* Returns libhb handle used by this HBCore instance.
*/
- (struct hb_handle_s *)hb_handle