diff options
author | Frank Schmirler <vdr@schmirler.de> | 2014-06-23 23:27:10 +0200 |
---|---|---|
committer | Frank Schmirler <vdr@schmirler.de> | 2014-06-23 23:27:10 +0200 |
commit | 5a173b0b212f21a7bc5f55487aef6da20511ee26 (patch) | |
tree | 1d70fb9e895413b6592ca32beae5fcd4f76b401a /server | |
parent | 3e9e7f7de609520ddba024c1516b6c969ba894fb (diff) | |
download | vdr-plugin-streamdev-5a173b0b212f21a7bc5f55487aef6da20511ee26.tar.gz vdr-plugin-streamdev-5a173b0b212f21a7bc5f55487aef6da20511ee26.tar.bz2 |
No need for Detach/Attach in SwitchDevice as it is only called when detached.
Diffstat (limited to 'server')
-rw-r--r-- | server/livestreamer.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/server/livestreamer.c b/server/livestreamer.c index 3487a6a..dcd9e7d 100644 --- a/server/livestreamer.c +++ b/server/livestreamer.c @@ -635,13 +635,8 @@ bool cStreamdevLiveStreamer::UsedByLiveTV(cDevice *device) cDevice *cStreamdevLiveStreamer::SwitchDevice(const cChannel *Channel, int Priority) { - // turn off the streams of this connection - Detach(); - cDevice *device = cDevice::GetDevice(Channel, Priority, false); if (!device) { - // can't switch - continue the current stream - Attach(); dsyslog("streamdev: GetDevice failed for channel %d (%s) at priority %d (PrimaryDevice=%d, ActualDevice=%d)", Channel->Number(), Channel->Name(), Priority, cDevice::PrimaryDevice()->CardIndex(), cDevice::ActualDevice()->CardIndex()); } else if (!device->IsTunedToTransponder(Channel) && UsedByLiveTV(device)) { |