summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs
index d7e3941bb..3fcf7cb5a 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs
@@ -197,6 +197,7 @@ namespace HandBrake.ApplicationServices.Model.Encoding
{
this.encoder = value;
this.OnPropertyChanged("Encoder");
+ this.OnPropertyChanged("IsPassthru");
}
}
@@ -341,6 +342,22 @@ namespace HandBrake.ApplicationServices.Model.Encoding
}
}
+ /// <summary>
+ /// Gets a value indicating whether IsPassthru.
+ /// </summary>
+ public bool IsPassthru
+ {
+ get
+ {
+ if (this.Encoder == AudioEncoder.Ac3Passthrough || this.Encoder == AudioEncoder.DtsPassthrough
+ || this.Encoder == AudioEncoder.DtsHDPassthrough || this.Encoder == AudioEncoder.AacPassthru
+ || this.Encoder == AudioEncoder.Mp3Passthru || this.Encoder == AudioEncoder.Passthrough)
+ {
+ return true;
+ }
+ return false;
+ }
+ }
#endregion
}
} \ No newline at end of file