Pulse-Eight/libcec — Issue #21: Handle paths with spaces in LibCecSharp x64 Builds
Author: babgvant
Created: 2012-02-10 02:53:11+00:00
State: open

Sorry I missed that the quotes should have been added for x64 builds as well.

This includes that and the following changes:

1) Add quotes to lib import for x64 builds
2) Add SetStreamPath wrapper methods to LibCecSharp
3) Add p/sp methods to CecSharpTester

-------------------------- project/LibCecSharp.vcproj --------------------------
index 6694daa..6b41521 100644
@@ -1,7 +1,7 @@

1)
Lib.SetLogicalAddress((CecLogicalAddress)byte.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber));
}
+ else if (splitCommand[0] == "p")
+ {
+ if (splitCommand.Length > 1)
+ Lib.SetHDMIPort((CecLogicalAddress)byte.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber), byte.Parse(splitCommand[2], System.Globalization.NumberStyles.HexNumber));
+ }
else if (splitCommand[0] == "pa")
{
- if (splitCommand.Length > 1)
- Lib.SetPhysicalAddress(short.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber));
+ if (splitCommand.Length > 1)
+ Lib.SetPhysicalAddress(short.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber));
+ }
+ else if (splitCommand[0] == "sp")
+ {
+ if (splitCommand.Length > 1)
+ Lib.SetStreamPath((CecLogicalAddress)byte.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber));
}
else if (splitCommand[0] == "osd")
{

----------------------- src/LibCecSharp/LibCecSharp.cpp -----------------------
index 06a98aa..038e781 100644
@@ -730,6 +730,16 @@ public:
return m_libCec->SetPhysicalAddress(physicalAddress);
}

+ bool SetStreamPath(CecLogicalAddress address)
+ {
+ return m_libCec->SetStreamPath((cec_logical_address)address);
+ }
+
+ bool SetStreamPath(uint16_t address)
+ {
+ return m_libCec->SetStreamPath(address);
+ }
+
bool PowerOnDevices(CecLogicalAddress logicalAddress)
{