X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=macosx%2FInstantHandBrake%2FHBCore.m;h=3d502b64c0cb81e4a52a167d710ff79cf03c217e;hb=f35d39f9adca67471b72f3e47398855d51481f87;hp=cf84a071c601869d42d3a4194ed05e272239dc8d;hpb=c42dd4ac1d4c7f358e036befa2dc99ca7667b553;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/macosx/InstantHandBrake/HBCore.m b/macosx/InstantHandBrake/HBCore.m index cf84a071..3d502b64 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