summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2018-03-24 09:58:03 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2018-03-24 09:58:03 +0100
commit53aea17949a184d264bfd98c8e669b94997bfc79 (patch)
treeaca55dd5c14cc9ae65241ee1eed57ecf1e1deb27 /device.c
parent1f16ada70ccf96fc8b2bf2f7b18b4e62afa33e9e (diff)
downloadvdr-53aea17949a184d264bfd98c8e669b94997bfc79.tar.gz
vdr-53aea17949a184d264bfd98c8e669b94997bfc79.tar.bz2
Fixed a possible discrepancy of the primary device number in the LSTD and PRIM commands
Diffstat (limited to 'device.c')
-rw-r--r--device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/device.c b/device.c
index a8cb0b55..626495dc 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 4.26 2018/01/27 14:45:08 kls Exp $
+ * $Id: device.c 4.27 2018/03/24 09:49:14 kls Exp $
*/
#include "device.h"
@@ -195,6 +195,7 @@ bool cDevice::SetPrimaryDevice(int n)
primaryDevice->MakePrimaryDevice(true);
primaryDevice->SetVideoFormat(Setup.VideoFormat);
primaryDevice->SetVolumeDevice(Setup.CurrentVolume);
+ Setup.PrimaryDVB = n + 1;
return true;
}
esyslog("ERROR: invalid primary device number: %d", n + 1);