MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / SendSetDeckControlMode

Method SendSetDeckControlMode

src/libcec/CECClient.cpp:603–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601}
602
603bool CCECClient::SendSetDeckControlMode(const cec_deck_control_mode mode, bool bSendUpdate /* = true */)
604{
605 // find a playback device that we control
606 CCECPlaybackDevice *device = GetPlaybackDevice();
607 if (device)
608 {
609 // and set the deck control mode if there is a match
610 device->SetDeckControlMode(mode);
611 if (bSendUpdate)
612 return device->TransmitDeckStatus(CECDEVICE_TV, false);
613 return true;
614 }
615
616 // no match
617 return false;
618}
619
620bool CCECClient::SendSetDeckInfo(const cec_deck_info info, bool bSendUpdate /* = true */)
621{

Callers 1

SetDeckControlModeMethod · 0.80

Calls 2

SetDeckControlModeMethod · 0.45
TransmitDeckStatusMethod · 0.45

Tested by

no test coverage detected