From 6a14c28cf9ed9c5f7eb217bc25c4a736326d3c13 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 12 Dec 2012 20:21:14 +0000 Subject: fix some crashes in the macui 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 --- libhb/stream.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libhb/stream.c') 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; -- cgit v1.2.3