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

Removed superfluous calls to SetVideoFormat() from device constructors

This commit is contained in:
Klaus Schmidinger 2012-02-15 13:22:03 +01:00
parent 825dd70bc4
commit 7a8cadd393
3 changed files with 4 additions and 8 deletions

View File

@ -6875,3 +6875,5 @@ Video Disk Recorder Revision History
- Added some missing 'const' to cDevice (thanks to Joachim Wilke). - Added some missing 'const' to cDevice (thanks to Joachim Wilke).
- Fixed handling the PrimaryLimit when requesting a device for live viewing - Fixed handling the PrimaryLimit when requesting a device for live viewing
(reported by Uwe Scheffler). (reported by Uwe Scheffler).
- Removed superfluous calls to SetVideoFormat() from device constructors. This
function is called in cDevice::SetPrimaryDevice(), anyway.

View File

@ -3,7 +3,7 @@
* *
* See the README file for copyright information and how to reach the author. * See the README file for copyright information and how to reach the author.
* *
* $Id: dvbsdffdevice.c 2.30 2011/08/27 11:33:57 kls Exp $ * $Id: dvbsdffdevice.c 2.31 2012/02/15 13:15:05 kls Exp $
*/ */
#include "dvbsdffdevice.h" #include "dvbsdffdevice.h"
@ -66,10 +66,6 @@ cDvbSdFfDevice::cDvbSdFfDevice(int Adapter, int Frontend, bool OutputOnly)
fclose(f); fclose(f);
} }
devVideoIndex = devVideoOffset >= 0 ? devVideoOffset++ : -1; devVideoIndex = devVideoOffset >= 0 ? devVideoOffset++ : -1;
// Video format:
SetVideoFormat(Setup.VideoFormat);
} }
cDvbSdFfDevice::~cDvbSdFfDevice() cDvbSdFfDevice::~cDvbSdFfDevice()

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: device.c 2.48 2012/02/15 12:14:32 kls Exp $ * $Id: device.c 2.49 2012/02/15 13:15:19 kls Exp $
*/ */
#include "device.h" #include "device.h"
@ -82,8 +82,6 @@ cDevice::cDevice(void)
SetDescription("receiver on device %d", CardIndex() + 1); SetDescription("receiver on device %d", CardIndex() + 1);
SetVideoFormat(Setup.VideoFormat);
mute = false; mute = false;
volume = Setup.CurrentVolume; volume = Setup.CurrentVolume;