From: Lars Op den Kamp Date: Thu, 8 Mar 2012 14:12:30 +0000 (+0100) Subject: cec: call SetControlledMode(false) as last command when closing the connection in... X-Git-Tag: upstream/2.2.0~1^2~31^2~98 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3c30c490d4ebd0137f8deeeeb30ba260a53d5013;p=deb_libcec.git cec: call SetControlledMode(false) as last command when closing the connection in v2. bugzid: 542 --- diff --git a/src/lib/adapter/USBCECAdapterCommunication.cpp b/src/lib/adapter/USBCECAdapterCommunication.cpp index cd41a8a..f56bdf4 100644 --- a/src/lib/adapter/USBCECAdapterCommunication.cpp +++ b/src/lib/adapter/USBCECAdapterCommunication.cpp @@ -252,6 +252,9 @@ void *CUSBCECAdapterCommunication::Process(void) /* set the ackmask to 0 before closing the connection */ SetAckMaskInternal(0, true); + if (m_iFirmwareVersion >= 2) + SetControlledMode(false); + if (m_port) { delete m_port;