]> granicus.if.org Git - handbrake/commitdiff
MacGui: load the lavcOption from preset and fixed the encoder selection when the...
authorritsuka <damiog@gmail.com>
Thu, 21 Aug 2014 17:43:05 +0000 (17:43 +0000)
committerritsuka <damiog@gmail.com>
Thu, 21 Aug 2014 17:43:05 +0000 (17:43 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6336 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/HBVideoController.m

index 9a6cb4b734d7f793ab12c65f51dbfb833971d007..af2c6c0db3171c6397a190c35254dc1f7719a0c0 100644 (file)
@@ -260,6 +260,13 @@ NSString *HBVideoEncoderChangedNotification = @"HBVideoEncoderChangedNotificatio
         self.codec = hb_video_encoder_get_default(videoContainer);
         [self videoEncoderPopUpChanged:nil];
     }
+    else
+    {
+        self.codec = selectedVidEncoderTag;
+    }
+
+    [fVidEncoderPopUp selectItemWithTag:self.codec];
+
 }
 
 - (void)titleChanged:(NSNotification *)aNotification
@@ -439,6 +446,9 @@ NSString *HBVideoEncoderChangedNotification = @"HBVideoEncoderChangedNotificatio
         }
     }
 
+    // Apply the lavcOption
+    self.lavcOptions = preset[@"lavcOption"];
+
     int qualityType = [preset[@"VideoQualityType"] intValue] - 1;
     /* Note since the removal of Target Size encoding, the possible values for VideoQuality type are 0 - 1.
      * Therefore any preset that uses the old 2 for Constant Quality would now use 1 since there is one less index