mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 17:16:51 +00:00
make sure that a client doesn't interrupt replaying on server's FF card
http://www.vdr-portal.de/board/thread.php?postid=948311 (reported by wtor)
This commit is contained in:
@@ -295,6 +295,7 @@ cDevice *cServerConnection::GetDevice(const cChannel *Channel, int Priority)
|
||||
cDevice *device = cDevice::GetDevice(Channel, Priority, false);
|
||||
|
||||
if (device && device == cDevice::ActualDevice()
|
||||
&& (!device->IsPrimaryDevice() || !device->Replaying())
|
||||
&& !cSuspendCtl::IsActive()
|
||||
&& current != NULL
|
||||
&& !TRANSPONDER(Channel, current)) {
|
||||
@@ -331,6 +332,7 @@ bool cServerConnection::ProvidesChannel(const cChannel *Channel, int Priority)
|
||||
|
||||
cDevice *device = CheckDevice(Channel, Priority, false);
|
||||
if (!device || (device == cDevice::ActualDevice()
|
||||
&& (!device->IsPrimaryDevice() || !device->Replaying())
|
||||
&& !cSuspendCtl::IsActive()
|
||||
&& StreamdevServerSetup.SuspendMode != smAlways
|
||||
&& current != NULL
|
||||
@@ -341,6 +343,7 @@ bool cServerConnection::ProvidesChannel(const cChannel *Channel, int Priority)
|
||||
device = CheckDevice(Channel, Priority, false);
|
||||
Attach();
|
||||
if (device && device == cDevice::ActualDevice()
|
||||
&& (!device->IsPrimaryDevice() || !device->Replaying())
|
||||
&& !cSuspendCtl::IsActive()
|
||||
&& StreamdevServerSetup.SuspendMode != smAlways
|
||||
&& current != NULL
|
||||
|
Reference in New Issue
Block a user