cec: fixed - ensure that the vendor commands are always sent for panasonic, and that...
[deb_libcec.git] / src / lib / implementations / SLCommandHandler.cpp
index 32902c2717c476dbaa75901bcf362951f99fddc0..f495b8b8643d756a62d0d3215a9f219c2638631e 100644 (file)
@@ -416,3 +416,10 @@ bool CSLCommandHandler::PowerOn(const cec_logical_address iInitiator, const cec_
 
   return CCECCommandHandler::PowerOn(iInitiator, iDestination);
 }
+
+void CSLCommandHandler::VendorPreActivateSourceHook(void)
+{
+  CCECPlaybackDevice *device = m_busDevice->AsPlaybackDevice();
+  if (device)
+    device->SetDeckStatus(!device->IsActiveSource() ? CEC_DECK_INFO_OTHER_STATUS : CEC_DECK_INFO_OTHER_STATUS_LG);
+}