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 | |
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
3 files changed, 9 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs b/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs index 83e4fe5ca..ca8a4f233 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs @@ -409,7 +409,8 @@ namespace HandBrake.ApplicationServices.Services AngleCount = title.AngleCount,
ParVal = new Size(title.ParVal.Width, title.ParVal.Height),
AutoCropDimensions = title.AutoCropDimensions,
- Fps = title.Framerate
+ Fps = title.Framerate,
+ SourceName = title.Path,
};
foreach (Interop.SourceData.Chapter chapter in title.Chapters)
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>
|