X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=macosx%2FController.m;h=545a263a8958f53fa7cb020f6b8c84f1b87d8806;hb=3250542476cfc59c9158211bfd7650b4fd5e5e2a;hp=0b2ca93648fb637c018e6d14131f53711b4f427b;hpb=f2de01762f56f5ba1042c1f3ce5b011b314da450;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/macosx/Controller.m b/macosx/Controller.m index 0b2ca936..545a263a 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -3113,8 +3113,8 @@ fWorkingCount = 0; //applyQueueToScan = NO; /* Not that source is loaded and settings applied, delete the queue item from the queue */ - //[self writeToActivityLog: "applyQueueSettingsToMainWindow: deleting queue item:%d",fqueueEditRescanItemNum]; - //[self removeQueueFileItem:fqueueEditRescanItemNum]; + [self writeToActivityLog: "applyQueueSettingsToMainWindow: deleting queue item:%d",fqueueEditRescanItemNum]; + [self removeQueueFileItem:fqueueEditRescanItemNum]; } @@ -5040,20 +5040,15 @@ the user is using "Custom" settings by determining the sender*/ float sliderRfInverse = ([fVidQualitySlider maxValue] - [fVidQualitySlider floatValue]) + [fVidQualitySlider minValue]; /* If the encoder is theora, use the float, otherwise use the inverse float*/ - float sliderRfToPercent; + //float sliderRfToPercent; if ([[fVidEncoderPopUp selectedItem] tag] == HB_VCODEC_THEORA) { - [fVidQualityRFField setStringValue: [NSString stringWithFormat: @"%.2f", [fVidQualitySlider floatValue]]]; - sliderRfToPercent = [fVidQualityRFField floatValue] / ([fVidQualitySlider maxValue] - [fVidQualitySlider minValue]); + [fVidQualityRFField setStringValue: [NSString stringWithFormat: @"%.2f", [fVidQualitySlider floatValue]]]; } else { [fVidQualityRFField setStringValue: [NSString stringWithFormat: @"%.2f", sliderRfInverse]]; - sliderRfToPercent = ( ([fVidQualitySlider maxValue] - [fVidQualitySlider minValue]) - ([fVidQualityRFField floatValue] - [fVidQualitySlider minValue])) / ([fVidQualitySlider maxValue] - [fVidQualitySlider minValue]); } - [fVidConstantCell setTitle: [NSString stringWithFormat: - NSLocalizedString( @"Constant quality: %.2f %%", @"" ), 100 * sliderRfToPercent]]; - [self customSettingUsed: sender]; } @@ -6837,17 +6832,25 @@ return YES; [self audioTrackPopUpChanged: audiocodecPopUp]; [mixdownPopUp selectItemWithTitle:[tempObject objectForKey:@"AudioMixdown"]]; - /* check to see if the selections was available, if not, rerun audioTrackPopUpChanged using the codec to just set the default + [self audioTrackMixdownChanged: mixdownPopUp]; + /* check to see if the selection was available, if not, rerun audioTrackPopUpChanged using the codec to just set the default * mixdown*/ if ([mixdownPopUp selectedItem] == nil) { [self audioTrackPopUpChanged: audiocodecPopUp]; + [self writeToActivityLog: "presetSelected mixdown not selected, rerun audioTrackPopUpChanged"]; } [sampleratePopUp selectItemWithTitle:[tempObject objectForKey:@"AudioSamplerate"]]; /* We set the presets bitrate if it is *not* an AC3 track since that uses the input bitrate */ if (![[tempObject objectForKey:@"AudioEncoder"] isEqualToString:@"AC3 Passthru"]) { [bitratePopUp selectItemWithTitle:[tempObject objectForKey:@"AudioBitrate"]]; + /* check to see if the bitrate selection was available, if not, rerun audioTrackMixdownChanged using the mixdown to just set the + *default mixdown bitrate*/ + if ([bitratePopUp selectedItem] == nil) + { + [self audioTrackMixdownChanged: mixdownPopUp]; + } } [drcSlider setFloatValue:[[tempObject objectForKey:@"AudioTrackDRCSlider"] floatValue]]; [self audioDRCSliderChanged: drcSlider];