From: Lars Op den Kamp Date: Wed, 14 Nov 2012 15:52:32 +0000 (+0100) Subject: support colon separated data for the 'tx' command in cec-client X-Git-Tag: upstream/2.2.0~1^2~12^2~14 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=98961e122cd2ed92a939ab9b20d9a4ffac01d675;p=deb_libcec.git support colon separated data for the 'tx' command in cec-client --- diff --git a/src/testclient/main.cpp b/src/testclient/main.cpp index 945935a..bb6e133 100644 --- a/src/testclient/main.cpp +++ b/src/testclient/main.cpp @@ -381,6 +381,10 @@ bool ProcessCommandTX(ICECAdapter *parser, const string &command, string &argume cec_command bytes; bytes.Clear(); + CStdString strArguments(arguments); + strArguments.Replace(':', ' '); + arguments = strArguments; + while (GetWord(arguments, strvalue) && HexStrToInt(strvalue, ivalue)) bytes.PushBack(ivalue);