]> granicus.if.org Git - handbrake/commitdiff
Fixed up what a subtitle scan looks like in the GUI job queue
authoreddyg <eddyg.hb@myreflection.org>
Tue, 21 Aug 2007 12:32:50 +0000 (12:32 +0000)
committereddyg <eddyg.hb@myreflection.org>
Tue, 21 Aug 2007 12:32:50 +0000 (12:32 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@847 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/QueueController.mm

index da52a6c1259bb803f6aa1ded709b2cd55d4f3c52..0afe92390b262316c222e4dc52fe47c2522a644f 100644 (file)
         title = j->title;
        /* show the name of the source Note: use title->name instead of
           title->dvd since name is just the chosen folder, instead of dvd which is the full path*/ 
-        [self AddTextField: [NSString stringWithFormat:
+        if (j->pass == -1)
+        {
+            /*
+             * Scan pass
+             */
+            [self AddTextField: [NSString stringWithFormat:
+            @"Task: %d   Source: %s, Title %d, Chapters %d-%d   Pass: Scan",i+1, title->name, title->index , j->chapter_start, j->chapter_end] rect: &rect];
+        } else {
+            /*
+             * Normal pass
+             */
+            [self AddTextField: [NSString stringWithFormat:
             @"Task: %d   Source: %s, Title %d, Chapters %d-%d   Pass: %d of %d",i+1, title->name, title->index , j->chapter_start, j->chapter_end,MAX( 1, j->pass ), MIN( 2, j->pass + 1 )] rect: &rect];       /* Muxer settings (File Format in the gui) */
                if (j->mux == 65536 || j->mux == 131072 || j->mux == 1048576)
                {
                
                /*Destination Field */
                [self AddTextField: [NSString stringWithFormat: @"Destination: %s", j->file] rect: &rect];
+                }
         /* Show remove button */
                [self AddButton: &rect tag: i];
     }