diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2010-01-01 15:15:36 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2010-01-01 15:15:36 +0100 |
commit | 491c6d0a859c98b7da69b5b4a01be0133fdfdc1c (patch) | |
tree | 768f3a576dcc6b5507fa9e70bffba4414576e22b /device.c | |
parent | 39f1ba7e0320832d44558045a10ad95f221acf30 (diff) | |
download | vdr-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |