diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-06-16 14:31:14 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-06-16 14:31:14 +0200 |
commit | d3f255e79ec8590728a34f6665bf2e2204b713c0 (patch) | |
tree | 335d0db9f90a706fe45f5fb0cde455c94399f43f /dvbapi.c | |
parent | 0af14457e0cb9f91dd2861814b8a2aae55a193be (diff) | |
download | vdr-d3f255e79ec8590728a34f6665bf2e2204b713c0.tar.gz vdr-d3f255e79ec8590728a34f6665bf2e2204b713c0.tar.bz2 |
Setup parameter for VideoFormat
Diffstat (limited to 'dvbapi.c')
-rw-r--r-- | dvbapi.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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) { |