diff options
author | jstebbins <[email protected]> | 2014-12-22 17:07:28 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-12-22 17:07:28 +0000 |
commit | 6bcb7bd0894f9f44637b9668e5b5d3d388aef152 (patch) | |
tree | c461b75d89c64d850779da89e08f0ca9d44bcd81 | |
parent | a5577a07468a7e1e6f158f19aca89d103ba6642a (diff) |
libhb: remove hb_job_reset
It is no longer needed by the mac ui
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6641 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/common.c | 54 | ||||
-rw-r--r-- | libhb/hb.h | 1 |
2 files changed, 0 insertions, 55 deletions
diff --git a/libhb/common.c b/libhb/common.c index 0206b99ac..4a807fcda 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -2969,41 +2969,6 @@ void hb_title_close( hb_title_t ** _t ) *_t = NULL; } -// The mac ui expects certain fields of the job struct to be cleaned up -// and others to remain untouched. -// e.g. picture settings like cropping, width, height, should remain untouched. -// -// So only initialize job elements that we know get set up by prepareJob and -// prepareJobForPreview. -// -// This should all get resolved in some future mac ui refactoring. -static void job_reset_for_mac_ui( hb_job_t * job, hb_title_t * title ) -{ - if ( job == NULL || title == NULL ) - return; - - job->title = title; - - /* Set defaults settings */ - job->chapter_start = 1; - job->chapter_end = hb_list_count( title->list_chapter ); - job->list_chapter = hb_chapter_list_copy( title->list_chapter ); - - job->vcodec = HB_VCODEC_FFMPEG_MPEG4; - job->vquality = -1.0; - job->vbitrate = 1000; - job->pass = 0; - job->vrate = title->vrate; - - job->list_audio = hb_list_init(); - job->list_subtitle = hb_list_init(); - job->list_filter = hb_list_init(); - - job->list_attachment = hb_attachment_list_copy( title->list_attachment ); - job->metadata = hb_metadata_copy( title->metadata ); -} - - static void job_setup(hb_job_t * job, hb_title_t * title) { if ( job == NULL || title == NULL ) @@ -3188,25 +3153,6 @@ hb_job_t * hb_job_init( hb_title_t * title ) return job; } -/** - * Clean up the job structure so that is is ready for setting up a new job. - * Should be called by front-ends after hb_add(). - */ -/********************************************************************** - * hb_job_reset - ********************************************************************** - * - *********************************************************************/ -void hb_job_reset( hb_job_t * job ) -{ - if ( job ) - { - hb_title_t * title = job->title; - job_clean(job); - job_reset_for_mac_ui(job, title); - } -} - /********************************************************************** * hb_job_close ********************************************************************** diff --git a/libhb/hb.h b/libhb/hb.h index dfbcc25a0..8706a6c25 100644 --- a/libhb/hb.h +++ b/libhb/hb.h @@ -88,7 +88,6 @@ void hb_rem( hb_handle_t *, hb_job_t * ); hb_title_t * hb_find_title_by_index( hb_handle_t *h, int title_index ); hb_job_t * hb_job_init_by_index( hb_handle_t *h, int title_index ); hb_job_t * hb_job_init( hb_title_t * title ); -void hb_job_reset( hb_job_t * job ); void hb_job_close( hb_job_t ** job ); void hb_start( hb_handle_t * ); |