Skip to content

Commit

Permalink
cec: don't send playstate updates, but always keep the default playst…
Browse files Browse the repository at this point in the history
…ate. fixes buttons becoming deactivated on some TVs. it also wasn't very fast, which resulted in delays when starting/stopping playback
  • Loading branch information
opdenkamp committed Dec 20, 2011
1 parent e449ad8 commit ec35abe
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions xbmc/peripherals/devices/PeripheralCecAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,21 +173,6 @@ void CPeripheralCecAdapter::Announce(EAnnouncementFlag flag, const char *sender,
}
}
}
else if (flag == Player && !strcmp(sender, "xbmc") && !strcmp(message, "OnStop"))
{
m_cecAdapter->SetDeckControlMode(CEC_DECK_CONTROL_MODE_STOP, false);
m_cecAdapter->SetDeckInfo(CEC_DECK_INFO_STOP);
}
else if (flag == Player && !strcmp(sender, "xbmc") && !strcmp(message, "OnPause"))
{
m_cecAdapter->SetDeckControlMode(CEC_DECK_CONTROL_MODE_SKIP_FORWARD_WIND, false);
m_cecAdapter->SetDeckInfo(CEC_DECK_INFO_STILL);
}
else if (flag == Player && !strcmp(sender, "xbmc") && !strcmp(message, "OnPlay"))
{
m_cecAdapter->SetDeckControlMode(CEC_DECK_CONTROL_MODE_SKIP_FORWARD_WIND, false);
m_cecAdapter->SetDeckInfo(CEC_DECK_INFO_PLAY);
}
}

bool CPeripheralCecAdapter::InitialiseFeature(const PeripheralFeature feature)
Expand Down

0 comments on commit ec35abe

Please sign in to comment.