diff options
Diffstat (limited to 'libhb/common.c')
-rw-r--r-- | libhb/common.c | 54 |
1 files changed, 0 insertions, 54 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 ********************************************************************** |