summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-01-01 15:15:36 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-01-01 15:15:36 +0100
commit491c6d0a859c98b7da69b5b4a01be0133fdfdc1c (patch)
tree768f3a576dcc6b5507fa9e70bffba4414576e22b /device.c
parent39f1ba7e0320832d44558045a10ad95f221acf30 (diff)
downloadvdr-491c6d0a859c98b7da69b5b4a01be0133fdfdc1c.tar.gz
vdr-491c6d0a859c98b7da69b5b4a01be0133fdfdc1c.tar.bz2
Fixed stopping subtitle display when switching the primary device
Diffstat (limited to 'device.c')
-rw-r--r--device.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/device.c b/device.c
index 527946ee..481d2328 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 2.29 2009/12/25 15:24:02 kls Exp $
+ * $Id: device.c 2.30 2010/01/01 15:03:36 kls Exp $
*/
#include "device.h"
@@ -154,6 +154,10 @@ int cDevice::DeviceNumber(void) const
void cDevice::MakePrimaryDevice(bool On)
{
+ if (!On) {
+ DELETENULL(liveSubtitle);
+ DELETENULL(dvbSubtitleConverter);
+ }
}
bool cDevice::SetPrimaryDevice(int n)