mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-12-27 07:11:05 +01:00
Fixed a possible discrepancy of the primary device number in the LSTD and PRIM commands
This commit is contained in:
3
device.c
3
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);
|
||||
|
||||
Reference in New Issue
Block a user