summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-06-16 14:31:14 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-06-16 14:31:14 +0200
commitd3f255e79ec8590728a34f6665bf2e2204b713c0 (patch)
tree335d0db9f90a706fe45f5fb0cde455c94399f43f /dvbapi.c
parent0af14457e0cb9f91dd2861814b8a2aae55a193be (diff)
downloadvdr-d3f255e79ec8590728a34f6665bf2e2204b713c0.tar.gz
vdr-d3f255e79ec8590728a34f6665bf2e2204b713c0.tar.bz2
Setup parameter for VideoFormat
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c12
1 files changed, 11 insertions, 1 deletions
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) {