diff options
author | sr55 <[email protected]> | 2012-07-07 15:49:55 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-07-07 15:49:55 +0000 |
commit | 7746907bf0ae4ef3f02aaa28a34a493dade912a2 (patch) | |
tree | 50095733d633794e8fdceafd8b19214acdef181f /win/CS/HandBrake.ApplicationServices/Services | |
parent | 563ff8d014bcf1a65e5185679215e0ec26f7e9f0 (diff) |
WinGui: Additional fixes for multi-instance.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4819 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services')
3 files changed, 15 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IQueueManager.cs b/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IQueueManager.cs index e86b5fe7c..0ae6bf518 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IQueueManager.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/Interfaces/IQueueManager.cs @@ -131,5 +131,10 @@ namespace HandBrake.ApplicationServices.Services.Interfaces /// True if sucessful
/// </returns>
bool WriteBatchScriptToFile(string path);
+
+ /// <summary>
+ /// Temp workaround until this can be fixed properly.
+ /// </summary>
+ void ResetInstanceId();
}
}
\ No newline at end of file diff --git a/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs b/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs index 452f47365..abe684a17 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/QueueManager.cs @@ -54,7 +54,7 @@ namespace HandBrake.ApplicationServices.Services /// <summary>
/// HandBrakes Queue file with a place holder for an extra string.
/// </summary>
- private readonly string queueFile;
+ private string queueFile;
#endregion
@@ -408,6 +408,14 @@ namespace HandBrake.ApplicationServices.Services return false;
}
+ /// <summary>
+ /// Temp workaround until this can be fixed properly.
+ /// </summary>
+ public void ResetInstanceId()
+ {
+ this.queueFile = string.Format("hb_queue_recovery{0}.xml", GeneralUtilities.GetInstanceCount);
+ }
+
#endregion
}
}
diff --git a/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs b/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs index fc8bb3f63..742a46b08 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs @@ -25,7 +25,7 @@ namespace HandBrake.ApplicationServices.Services /// <summary>
/// Scan a Source
/// </summary>
- public class ScanService : IScan
+ public class ScanService : IScan
{
#region Private Variables
|