summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Model/Encoding
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-09-08 17:46:28 +0000
committersr55 <[email protected]>2012-09-08 17:46:28 +0000
commitd5bcce8f440245352742d35422fe913eb013bbbd (patch)
tree680afc2f050b871c7cc46eda241169118362c024 /win/CS/HandBrake.ApplicationServices/Model/Encoding
parentda4318f07c23f6755b1b21845b7336990ebabcd4 (diff)
WinGui: Implement hb_get_audio_bitrate_limits() in the Windows UI to provide only valid bitrate options. Also disabled the bitrate selection control for flac.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4938 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Model/Encoding')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs
index ac4b95e32..fedeb275f 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs
@@ -198,6 +198,7 @@ namespace HandBrake.ApplicationServices.Model.Encoding
this.encoder = value;
this.NotifyOfPropertyChange(() => this.Encoder);
this.NotifyOfPropertyChange("IsPassthru");
+ this.NotifyOfPropertyChange("CanSetBitrate");
this.NotifyOfPropertyChange("TrackReference");
}
}
@@ -335,6 +336,17 @@ namespace HandBrake.ApplicationServices.Model.Encoding
}
/// <summary>
+ /// Gets a value indicating whether can set bitrate.
+ /// </summary>
+ public bool CanSetBitrate
+ {
+ get
+ {
+ return this.IsPassthru || this.Encoder == AudioEncoder.ffflac;
+ }
+ }
+
+ /// <summary>
/// Gets a value indicating whether IsLossless.
/// </summary>
public bool IsLossless