Ticket #2504: mythtv-0.20.vbipatch.txt

File mythtv-0.20.vbipatch.txt, 986 bytes (added by mrsam@…, 15 years ago)
Line 
1--- libs/libmythtv/mpegrecorder.cpp.vbi 2006-07-18 11:55:57.000000000 -0400
2+++ libs/libmythtv/mpegrecorder.cpp     2006-09-25 22:11:52.000000000 -0400
3@@ -386,11 +386,6 @@
4 
5     if (vbimode)
6     {
7-        struct ivtv_sliced_vbi_format vbifmt;
8-        bzero(&vbifmt, sizeof(struct ivtv_sliced_vbi_format));
9-        vbifmt.service_set = (1 == vbimode) ? VBI_TYPE_TELETEXT : VBI_TYPE_CC;
10-
11-        if (ioctl(chanfd, IVTV_IOC_S_VBI_MODE, &vbifmt) < 0)
12         {
13             struct v4l2_format vbi_fmt;
14             bzero(&vbi_fmt, sizeof(struct v4l2_format));
15@@ -409,13 +404,6 @@
16         {
17             VERBOSE(VB_IMPORTANT, LOC + "Can't enable VBI recording (2)"+ENO);
18         }
19-
20-        ioctl(chanfd, IVTV_IOC_G_VBI_MODE, &vbifmt);
21-
22-        VERBOSE(VB_RECORD, LOC + QString(
23-                    "VBI service:%1, packet size:%2, io size:%3")
24-                .arg(vbifmt.service_set).arg(vbifmt.packet_size)
25-                .arg(vbifmt.io_size));
26     }
27 
28     return true;