1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Only creating a new cDvbOsdProvider in cDvbDevice::MakePrimaryDevice() if 'On' is true

This commit is contained in:
Klaus Schmidinger 2007-10-13 11:17:56 +02:00
parent 42a8041352
commit a20bd2a42f
2 changed files with 4 additions and 2 deletions

View File

@ -5457,3 +5457,5 @@ Video Disk Recorder Revision History
by Reinhard Nissl).
- Fixed a crash when pressing Left while at the first character of a cMenuEditStrItem
(thanks to Christian Wieninger).
- Only creating a new cDvbOsdProvider in cDvbDevice::MakePrimaryDevice() if 'On'
is true (i.e. this device is being made the primary device).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: dvbdevice.c 1.165 2007/08/17 13:37:56 kls Exp $
* $Id: dvbdevice.c 1.166 2007/10/13 11:15:50 kls Exp $
*/
#include "dvbdevice.h"
@ -483,7 +483,7 @@ bool cDvbDevice::Initialize(void)
void cDvbDevice::MakePrimaryDevice(bool On)
{
if (HasDecoder())
if (On && HasDecoder())
new cDvbOsdProvider(fd_osd);
}