1 |
zzam 07/11/21 10:33:14 |
2 |
|
3 |
Modified: series |
4 |
Added: vdr-1.5.10.diff |
5 |
Log: |
6 |
Added patch to compile with vdr-1.5.10 |
7 |
(Portage version: 2.1.3.19) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 media-plugins/vdr-reelchannelscan/files/0.4.3/series |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-reelchannelscan/files/0.4.3/series?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-reelchannelscan/files/0.4.3/series?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-reelchannelscan/files/0.4.3/series?r1=1.2&r2=1.3 |
15 |
|
16 |
Index: series |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-plugins/vdr-reelchannelscan/files/0.4.3/series,v |
19 |
retrieving revision 1.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- series 21 May 2007 11:51:20 -0000 1.2 |
23 |
+++ series 21 Nov 2007 10:33:14 -0000 1.3 |
24 |
@@ -2,3 +2,4 @@ |
25 |
device-numbering.diff |
26 |
i18n.diff |
27 |
gentoo.diff |
28 |
+vdr-1.5.10.diff |
29 |
|
30 |
|
31 |
|
32 |
1.1 media-plugins/vdr-reelchannelscan/files/0.4.3/vdr-1.5.10.diff |
33 |
|
34 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-reelchannelscan/files/0.4.3/vdr-1.5.10.diff?rev=1.1&view=markup |
35 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-reelchannelscan/files/0.4.3/vdr-1.5.10.diff?rev=1.1&content-type=text/plain |
36 |
|
37 |
Index: vdr-1.5.10.diff |
38 |
=================================================================== |
39 |
Index: reelchannelscan-0.4.3/filter.h |
40 |
=================================================================== |
41 |
--- reelchannelscan-0.4.3.orig/filter.h |
42 |
+++ reelchannelscan-0.4.3/filter.h |
43 |
@@ -90,7 +90,9 @@ public: |
44 |
#ifdef REELVDR |
45 |
#define MAXNITS 256 |
46 |
#endif |
47 |
+#ifndef MAXNETWORKNAME |
48 |
#define MAXNETWORKNAME 256 |
49 |
+#endif |
50 |
|
51 |
|
52 |
class NitFilter : public cFilter { |
53 |
Index: reelchannelscan-0.4.3/filter.c |
54 |
=================================================================== |
55 |
--- reelchannelscan-0.4.3.orig/filter.c |
56 |
+++ reelchannelscan-0.4.3/filter.c |
57 |
@@ -400,16 +400,17 @@ void PatFilter::Process(u_short Pid, u_c |
58 |
int Ppid = pmt.getPCRPid(); |
59 |
int Apids[MAXAPIDS + 1] = { 0 }; |
60 |
int Dpids[MAXDPIDS + 1] = { 0 }; |
61 |
-#if VDRVERSNUM >= 10332 |
62 |
+ int Spids[MAXSPIDS + 1] = { 0 }; |
63 |
+#ifndef MAXLANGCODE2 |
64 |
+#define MAXLANGCODE2 4 |
65 |
+#endif |
66 |
char ALangs[MAXAPIDS + 1][MAXLANGCODE2] = { "" }; |
67 |
char DLangs[MAXDPIDS + 1][MAXLANGCODE2] = { "" }; |
68 |
-#else |
69 |
- char ALangs[MAXAPIDS + 1][4] = { "" }; |
70 |
- char DLangs[MAXDPIDS + 1][4] = { "" }; |
71 |
-#endif |
72 |
+ char SLangs[MAXSPIDS][MAXLANGCODE2] = { "" }; |
73 |
int Tpid = 0; |
74 |
int NumApids = 0; |
75 |
int NumDpids = 0; |
76 |
+ int NumSpids = 0; |
77 |
for (SI::Loop::Iterator it; pmt.streamLoop.getNext(stream, it); ) { |
78 |
// printf("sid: %5d pid %5d str_t%2X \n", pmt.getServiceId(), stream.getPid(), stream.getStreamType()); |
79 |
|
80 |
@@ -454,6 +455,28 @@ void PatFilter::Process(u_short Pid, u_c |
81 |
case SI::AC3DescriptorTag: |
82 |
dpid = stream.getPid(); |
83 |
break; |
84 |
+#if VDRVERSNUM >= 10510 |
85 |
+ case SI::SubtitlingDescriptorTag: |
86 |
+ if (NumSpids < MAXSPIDS) { |
87 |
+ Spids[NumSpids] = stream.getPid(); |
88 |
+ SI::SubtitlingDescriptor *sd = (SI::SubtitlingDescriptor *)d; |
89 |
+ SI::SubtitlingDescriptor::Subtitling sub; |
90 |
+ char *s = SLangs[NumSpids]; |
91 |
+ int n = 0; |
92 |
+ for (SI::Loop::Iterator it; sd->subtitlingLoop.getNext(sub, it); ) { |
93 |
+ if (sub.languageCode[0]) { |
94 |
+ if (n > 0) |
95 |
+ *s++ = '+'; |
96 |
+ strn0cpy(s, I18nNormalizeLanguageCode(sub.languageCode), MAXLANGCODE1); |
97 |
+ s += strlen(s); |
98 |
+ if (n++ > 1) |
99 |
+ break; |
100 |
+ } |
101 |
+ } |
102 |
+ NumSpids++; |
103 |
+ } |
104 |
+ break; |
105 |
+#endif |
106 |
case SI::TeletextDescriptorTag: |
107 |
Tpid = stream.getPid(); |
108 |
break; |
109 |
@@ -481,7 +504,11 @@ void PatFilter::Process(u_short Pid, u_c |
110 |
delete d; |
111 |
} |
112 |
} |
113 |
+#if VDRVERSNUM >= 10510 |
114 |
+ Channel->SetPids(Vpid, Vpid ? Ppid : 0, Apids, ALangs, Dpids, DLangs, Spids, SLangs, Tpid); |
115 |
+#else |
116 |
Channel->SetPids(Vpid, Vpid ? Ppid : 0, Apids, ALangs, Dpids, DLangs, Tpid); |
117 |
+#endif |
118 |
//printf("#### %i %s %i %i SID %i\n",num,Channel->Name(),Vpid, Apids[0], Channel->Sid()); |
119 |
Channel->SetCaIds(CaDescriptors->CaIds()); |
120 |
Channel->SetCaDescriptors(CaDescriptorHandler.AddCaDescriptors(CaDescriptors)); |
121 |
|
122 |
|
123 |
|
124 |
-- |
125 |
gentoo-commits@g.o mailing list |