diff options
author | sr55 <[email protected]> | 2013-08-29 16:02:06 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-08-29 16:02:06 +0000 |
commit | aa6b8386ae5372a42ba515a707bb7f61e1fcdb4e (patch) | |
tree | 37f2641d8b899c764aafcb3162a1702dfb3525e8 /win/CS/HandBrake.Interop | |
parent | bfd79c7ca947ec205a238a334bfe7f37fd40bb21 (diff) |
Interop: Add Path to the Title object
WinGui: Set the SourceName in the Title object so auto-naming works correctly for folder scans.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5757 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.Interop')
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs | 3 | ||||
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/Title.cs | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs index b76592d9a..86faa7b5d 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs @@ -1747,7 +1747,8 @@ namespace HandBrake.Interop VideoCodecName = title.video_codec_name,
Framerate = ((double)title.rate) / title.rate_base,
FramerateNumerator = title.rate,
- FramerateDenominator = title.rate_base
+ FramerateDenominator = title.rate_base,
+ Path = title.path
};
switch (title.type)
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/Title.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/Title.cs index 8c7d65412..d722404bd 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/Title.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/Title.cs @@ -149,6 +149,11 @@ namespace HandBrake.Interop.SourceData }
}
+ /// <summary>
+ /// Gets or sets the path.
+ /// </summary>
+ public string Path { get; set; }
+
/// <summary>
/// Override of the ToString method to provide an easy way to use this object in the UI
/// </summary>
|