mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
remove obsolete kodi code for grabbers (#372)
This commit is contained in:
parent
c85b2de13d
commit
05ee316c1d
@ -42,11 +42,7 @@ public slots:
|
||||
///
|
||||
virtual void action();
|
||||
|
||||
void setCropping(const unsigned cropLeft, const unsigned cropRight,
|
||||
const unsigned cropTop, const unsigned cropBottom);
|
||||
|
||||
virtual void kodiPlay();
|
||||
virtual void kodiPause();
|
||||
void setCropping(const unsigned cropLeft, const unsigned cropRight, const unsigned cropTop, const unsigned cropBottom);
|
||||
|
||||
///
|
||||
/// Set the video mode (2D/3D)
|
||||
|
@ -48,10 +48,6 @@ signals:
|
||||
|
||||
protected:
|
||||
|
||||
virtual void kodiPlay();
|
||||
virtual void kodiOff();
|
||||
virtual void kodiPause();
|
||||
|
||||
void setColors(const std::vector<ColorRgb> &ledColors, const int timeout_ms);
|
||||
std::string _grabberName;
|
||||
|
||||
|
@ -43,18 +43,6 @@ void DispmanxWrapper::action()
|
||||
setColors(_ledColors, _timeout_ms);
|
||||
}
|
||||
|
||||
void DispmanxWrapper::kodiPlay()
|
||||
{
|
||||
_grabber->setFlags(0);
|
||||
GrabberWrapper::kodiPlay();
|
||||
|
||||
}
|
||||
|
||||
void DispmanxWrapper::kodiPause()
|
||||
{
|
||||
_grabber->setFlags(0);
|
||||
GrabberWrapper::kodiPause();
|
||||
}
|
||||
|
||||
void DispmanxWrapper::setVideoMode(const VideoMode mode)
|
||||
{
|
||||
|
@ -80,39 +80,21 @@ void GrabberWrapper::componentStateChanged(const hyperion::Components component,
|
||||
}
|
||||
}
|
||||
|
||||
void GrabberWrapper::kodiPlay()
|
||||
{
|
||||
start();
|
||||
}
|
||||
|
||||
void GrabberWrapper::kodiPause()
|
||||
{
|
||||
start();
|
||||
}
|
||||
|
||||
void GrabberWrapper::kodiOff()
|
||||
{
|
||||
stop();
|
||||
}
|
||||
|
||||
|
||||
void GrabberWrapper::setGrabbingMode(const GrabbingMode mode)
|
||||
{
|
||||
switch (mode)
|
||||
{
|
||||
case GRABBINGMODE_VIDEO:
|
||||
case GRABBINGMODE_PAUSE:
|
||||
kodiPause();
|
||||
break;
|
||||
case GRABBINGMODE_AUDIO:
|
||||
case GRABBINGMODE_PHOTO:
|
||||
case GRABBINGMODE_MENU:
|
||||
case GRABBINGMODE_SCREENSAVER:
|
||||
case GRABBINGMODE_INVALID:
|
||||
kodiPlay();
|
||||
start();
|
||||
break;
|
||||
case GRABBINGMODE_OFF:
|
||||
kodiOff();
|
||||
stop();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user