I missed setting some pointers to NULL after free and missed place
where the ui was setting job->file directly instead of using hb_job_set_file().
Also, a NULL chapter name caused a crash.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5097
b64f7644-9d1e-0410-96f1-
a4d463321fa5
hb_attachment_t *attachment;
free(job->file);
+ job->file = NULL;
free(job->advanced_opts);
+ job->advanced_opts = NULL;
// clean up chapter list
while( ( chapter = hb_list_item( job->list_chapter, 0 ) ) )
// One Chapter
hb_chapter_t * chapter;
chapter = calloc( sizeof( hb_chapter_t ), 1 );
+ hb_chapter_set_title( chapter, "Chapter 1" );
chapter->index = 1;
chapter->duration = title->duration;
chapter->hours = title->hours;
}
/* We now direct our preview encode to fPreviewMoviePath */
- fTitle->job->file = [fPreviewMoviePath UTF8String];
+ hb_job_set_file(fTitle->job, [fPreviewMoviePath UTF8String]);
/* We use our advance pref to determine how many previews to scan */
int hb_num_previews = [[[NSUserDefaults standardUserDefaults] objectForKey:@"PreviewsNumber"] intValue];