mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed switching the video format in the Setup/DVB menu
This commit is contained in:
parent
90ef5ff1ac
commit
371b9be00b
@ -189,6 +189,7 @@ Wolfgang Henselmann-Weiss <Wolfgang_Henselmann@betaresearch.de>
|
|||||||
Uwe Scheffler <linux_dvb@uni.de>
|
Uwe Scheffler <linux_dvb@uni.de>
|
||||||
for his help in keeping 'channels.conf.cable' and 'channels.conf.terr' up to date
|
for his help in keeping 'channels.conf.cable' and 'channels.conf.terr' up to date
|
||||||
for helping to test new DVB-T handling
|
for helping to test new DVB-T handling
|
||||||
|
for reporting a bug in switching the video format in the Setup/DVB menu
|
||||||
|
|
||||||
Matjaz Thaler <matjaz.thaler@guest.arnes.si>
|
Matjaz Thaler <matjaz.thaler@guest.arnes.si>
|
||||||
for improving AC3 decoding when replaying DVDs
|
for improving AC3 decoding when replaying DVDs
|
||||||
|
2
HISTORY
2
HISTORY
@ -1594,3 +1594,5 @@ Video Disk Recorder Revision History
|
|||||||
VDR with NEWSTRUCT=1.
|
VDR with NEWSTRUCT=1.
|
||||||
- Fixed radio channels in channels.conf.cable (thanks to Robert Schiele and Uwe
|
- Fixed radio channels in channels.conf.cable (thanks to Robert Schiele and Uwe
|
||||||
Scheffler).
|
Scheffler).
|
||||||
|
- Fixed switching the video format in the Setup/DVB menu (thanks to Uwe Scheffler
|
||||||
|
for reporting this one).
|
||||||
|
7
menu.c
7
menu.c
@ -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: menu.c 1.212 2002/10/06 14:08:44 kls Exp $
|
* $Id: menu.c 1.213 2002/10/12 09:06:57 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -1776,13 +1776,14 @@ cMenuSetupDVB::cMenuSetupDVB(void)
|
|||||||
eOSState cMenuSetupDVB::ProcessKey(eKeys Key)
|
eOSState cMenuSetupDVB::ProcessKey(eKeys Key)
|
||||||
{
|
{
|
||||||
int oldPrimaryDVB = Setup.PrimaryDVB;
|
int oldPrimaryDVB = Setup.PrimaryDVB;
|
||||||
|
bool oldVideoFormat = Setup.VideoFormat;
|
||||||
eOSState state = cMenuSetupBase::ProcessKey(Key);
|
eOSState state = cMenuSetupBase::ProcessKey(Key);
|
||||||
|
|
||||||
if (state == osBack && Key == kOk) {
|
if (state == osBack && Key == kOk) {
|
||||||
if (Setup.PrimaryDVB != oldPrimaryDVB) {
|
if (Setup.PrimaryDVB != oldPrimaryDVB)
|
||||||
state = osSwitchDvb;
|
state = osSwitchDvb;
|
||||||
|
if (Setup.VideoFormat != oldVideoFormat)
|
||||||
cDevice::PrimaryDevice()->SetVideoFormat(Setup.VideoFormat);
|
cDevice::PrimaryDevice()->SetVideoFormat(Setup.VideoFormat);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user