From d3f255e79ec8590728a34f6665bf2e2204b713c0 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 16 Jun 2001 14:31:14 +0200 Subject: Setup parameter for VideoFormat --- dvbapi.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'dvbapi.c') diff --git a/dvbapi.c b/dvbapi.c index 453b2b12..ec0c8f63 100644 --- a/dvbapi.c +++ b/dvbapi.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbapi.c 1.76 2001/06/16 11:36:40 kls Exp $ + * $Id: dvbapi.c 1.77 2001/06/16 14:23:28 kls Exp $ */ #include "dvbapi.h" @@ -1375,6 +1375,10 @@ cDvbApi::cDvbApi(int n) fd_dvr = -1; + // Video format: + + SetVideoFormat(Setup.VideoFormat ? VIDEO_FORMAT_16_9 : VIDEO_FORMAT_4_3); + // We only check the devices that must be present - the others will be checked before accessing them: if (((fd_qpskfe >= 0 && fd_sec >= 0) || fd_qamfe >= 0) && fd_demuxv >= 0 && fd_demuxa1 >= 0 && fd_demuxa2 >= 0 && fd_demuxt >= 0) { @@ -2027,6 +2031,12 @@ void cDvbApi::SetModeNormal(bool FromRecording) } } +void cDvbApi::SetVideoFormat(videoFormat_t Format) +{ + if (fd_video) + CHECK(ioctl(fd_video, VIDEO_SET_FORMAT, Format)); +} + bool cDvbApi::SetPid(int fd, dmxPesType_t PesType, dvb_pid_t Pid, dmxOutput_t Output) { if (Pid == 0) { -- cgit v1.2.3