summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/common.c2
-rw-r--r--libhb/stream.c1
-rw-r--r--macosx/HBPreviewController.m2
3 files changed, 4 insertions, 1 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 60c2b4ed7..34c97da54 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -1738,7 +1738,9 @@ static void job_clean( hb_job_t * job )
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 ) ) )
diff --git a/libhb/stream.c b/libhb/stream.c
index 5d4f36516..02a49e20c 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -1076,6 +1076,7 @@ hb_title_t * hb_stream_title_scan(hb_stream_t *stream, hb_title_t * title)
// 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;
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m
index 03b341615..69b6f521e 100644
--- a/macosx/HBPreviewController.m
+++ b/macosx/HBPreviewController.m
@@ -859,7 +859,7 @@
}
/* 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];