OSDN Git Service
(root)
/
handbrake-jp
/
handbrake-jp-git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dvdnav: fix crash when poorly masterd disc has no menus
[handbrake-jp/handbrake-jp-git.git]
/
macosx
/
InstantHandBrake
/
HBCore.m
diff --git
a/macosx/InstantHandBrake/HBCore.m
b/macosx/InstantHandBrake/HBCore.m
index
cf84a07
..
3d502b6
100644
(file)
--- 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
* Returns libhb handle used by this HBCore instance.
*/
- (struct hb_handle_s *)hb_handle