diff options
author | Lars Hanisch <dvb@flensrocker.de> | 2014-01-11 14:13:53 +0100 |
---|---|---|
committer | Lars Hanisch <dvb@flensrocker.de> | 2014-01-11 14:13:53 +0100 |
commit | 3f468f018f418db7555bd543e1d6483a0953fa60 (patch) | |
tree | 0dc74e3f834f5d0e165c421341d915722a497c0a | |
parent | 679d5df7fc9af8b7a17a94b323c2678d9fe81717 (diff) | |
download | vdr-plugin-pvrinput-3f468f018f418db7555bd543e1d6483a0953fa60.tar.gz vdr-plugin-pvrinput-3f468f018f418db7555bd543e1d6483a0953fa60.tar.bz2 |
remove FirstChannelSwitch workaround, isn't needed anymore
-rw-r--r-- | device.c | 4 | ||||
-rw-r--r-- | device.h | 1 |
2 files changed, 1 insertions, 4 deletions
@@ -34,7 +34,6 @@ cPvrDevice::cPvrDevice(int DeviceNumber, cDevice *ParentDevice) isClosing(false), readThreadRunning(false), ChannelSettingsDone(false), - FirstChannelSwitch(true), pvrusb2_ready(true), driver(undef), cardname(UNDEF), @@ -502,7 +501,7 @@ bool cPvrDevice::Tune(int freq) bool cPvrDevice::SetInput(int input) { - if (input == CurrentInput && !FirstChannelSwitch) + if (input == CurrentInput) return true; log(pvrDEBUG1, "cPvrDevice::SetInput on /dev/video%d (%s) to %d", number, CARDNAME[cardname], input); if (IOCTL(v4l2_fd, VIDIOC_S_INPUT, &input) != 0) { @@ -926,7 +925,6 @@ bool cPvrDevice::OpenDvr(void) } //end: switch (newInputType) CurrentInputType = newInputType; ChannelSettingsDone = true; - FirstChannelSwitch = false; } //end: if ((!ChannelSettingsDone) if (CurrentInputType == eTelevision) SetVBImode(newLinesPerFrame, PvrSetup.SliceVBI ? V4L2_MPEG_STREAM_VBI_FMT_IVTV : V4L2_MPEG_STREAM_VBI_FMT_NONE); @@ -106,7 +106,6 @@ private: bool isClosing; bool readThreadRunning; bool ChannelSettingsDone; - bool FirstChannelSwitch; bool pvrusb2_ready; eV4l2Driver driver; eV4l2CardName cardname; |