From 001865a58ce3dabedc57b3db9b3a4892be911d91 Mon Sep 17 00:00:00 2001 From: Lars Hanisch Date: Thu, 29 Dec 2011 00:13:21 +0100 Subject: correct camslot assignment on detach --- patches/vdr-1.7.22-dynamite-subdevice.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'patches') diff --git a/patches/vdr-1.7.22-dynamite-subdevice.patch b/patches/vdr-1.7.22-dynamite-subdevice.patch index b2c83c9..983ea7d 100644 --- a/patches/vdr-1.7.22-dynamite-subdevice.patch +++ b/patches/vdr-1.7.22-dynamite-subdevice.patch @@ -1,3 +1,16 @@ +diff --git a/ci.c b/ci.c +index 59d62ef..6c5face 100644 +--- a/ci.c ++++ b/ci.c +@@ -1571,6 +1571,8 @@ cCamSlot::cCamSlot(cCiAdapter *CiAdapter) + + cCamSlot::~cCamSlot() + { ++ if (ciAdapter && ciAdapter->assignedDevice) ++ ciAdapter->assignedDevice->SetCamSlot(NULL); + CamSlots.Del(this, false); + DeleteAllConnections(); + } diff --git a/ci.h b/ci.h index 71bbdf9..70303d1 100644 --- a/ci.h -- cgit v1.2.3