diff options
author | Scott <[email protected]> | 2016-07-30 19:42:04 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2016-07-30 19:42:04 +0100 |
commit | 9b7ef42ebb3b0e38d1f08a12c346c1085ba9546c (patch) | |
tree | 7b8b51ae715beec4adf9f7c4c91c99898350f455 /win | |
parent | 52d1b2fd6e3a927793e354c07a7396040ec5c59e (diff) | |
parent | e1fd81b631045af761e46a208ea1d54b3fec0fbe (diff) |
Merge pull request #285 from RandomEngy/log-and-const-fixes
Interop log and const fixes
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Interop/HandBrakeUtils.cs | 9 | ||||
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Interop/HbLib/NativeConstants.cs | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeUtils.cs b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeUtils.cs index ef98f3f86..1acb411b0 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeUtils.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeUtils.cs @@ -145,15 +145,10 @@ namespace HandBrake.ApplicationServices.Interop /// </param>
public static void LoggingHandler(string message)
{
+ message = message.TrimEnd();
if (!string.IsNullOrEmpty(message))
{
- string[] messageParts = message.Split(new[] { "\n" }, StringSplitOptions.RemoveEmptyEntries);
-
- if (messageParts.Length > 0)
- {
- message = messageParts[0];
- SendMessageEvent(message);
- }
+ SendMessageEvent(message);
}
}
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HbLib/NativeConstants.cs b/win/CS/HandBrake.ApplicationServices/Interop/HbLib/NativeConstants.cs index 0bcbc18cf..787bb7c72 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/HbLib/NativeConstants.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/HbLib/NativeConstants.cs @@ -13,7 +13,7 @@ namespace HandBrake.ApplicationServices.Interop.HbLib public class NativeConstants
{
// Audio encoders
- public const uint HB_ACODEC_MASK = 0x00FFFF00;
+ public const uint HB_ACODEC_MASK = 0x03FFFF00;
public const uint HB_ACODEC_LAME = 0x00000200;
public const uint HB_ACODEC_VORBIS = 0x00000400;
public const uint HB_ACODEC_AC3 = 0x00000800;
@@ -58,5 +58,10 @@ namespace HandBrake.ApplicationServices.Interop.HbLib public const int HB_STATE_PAUSED = 16;
public const int HB_STATE_WORKDONE = 32;
public const int HB_STATE_MUXING = 64;
- }
+
+ // Keep aspect ratio values
+ public const int HB_KEEP_WIDTH = 0x01;
+ public const int HB_KEEP_HEIGHT = 0x02;
+ public const int HB_KEEP_DISPLAY_ASPECT = 0x04;
+ }
}
|