]> granicus.if.org Git - handbrake/commitdiff
MacGui: add an assert in HBQueueController to track down a rare crash.
authorDamiano Galassi <damiog@gmail.com>
Sat, 27 Oct 2018 13:44:01 +0000 (15:44 +0200)
committerDamiano Galassi <damiog@gmail.com>
Sat, 27 Oct 2018 13:44:01 +0000 (15:44 +0200)
macosx/HBQueueController.m

index 7fb3878c1e840b60ec5767a23c9a19e8e7c14d0d..3a0840293176249f5161b299f60bb8feb27ac829 100644 (file)
@@ -854,7 +854,9 @@ static void *HBControllerQueueCoreContext = &HBControllerQueueCoreContext;
     NSParameterAssert(job);
 
     // Reset the title in the job.
-    job.title = self.core.titles[0];
+    job.title = self.core.titles.firstObject;
+
+    NSParameterAssert(job);
 
     HBStateFormatter *formatter = [[HBStateFormatter alloc] init];
     formatter.title = job.outputFileName;