summaryrefslogtreecommitdiff
path: root/patches/patch-set.1.7.15/0002-Added-setup-option-to-enable-teletext-subtitle-recor.patch
blob: 812a99e0ba8f59c6d818c4a9c29b7d1dc7ed500f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
From 4ede25d08ba25bee414020ff2b4c76590ad3f92c Mon Sep 17 00:00:00 2001
From: etobi <git@e-tobi.net>
Date: Sat, 13 Feb 2010 14:42:30 +0100
Subject: [PATCH 2/6] Added setup option to enable teletext subtitle recording

---
 MANUAL      |    3 +++
 config.c    |    3 +++
 config.h    |    1 +
 menu.c      |    1 +
 po/ca_ES.po |    3 +++
 po/cs_CZ.po |    3 +++
 po/da_DK.po |    3 +++
 po/de_DE.po |    3 +++
 po/el_GR.po |    3 +++
 po/es_ES.po |    3 +++
 po/et_EE.po |    3 +++
 po/fi_FI.po |    3 +++
 po/fr_FR.po |    3 +++
 po/hr_HR.po |    3 +++
 po/hu_HU.po |    3 +++
 po/it_IT.po |    3 +++
 po/lt_LT.po |    3 +++
 po/nl_NL.po |    3 +++
 po/nn_NO.po |    3 +++
 po/pl_PL.po |    3 +++
 po/pt_PT.po |    3 +++
 po/ro_RO.po |    3 +++
 po/ru_RU.po |    3 +++
 po/sk_SK.po |    3 +++
 po/sl_SI.po |    3 +++
 po/sv_SE.po |    3 +++
 po/tr_TR.po |    3 +++
 po/uk_UA.po |    3 +++
 po/zh_CN.po |    3 +++
 receiver.c  |    2 +-
 30 files changed, 84 insertions(+), 1 deletions(-)

diff --git a/MANUAL b/MANUAL
index 7fae53b..6b0ae57 100644
--- a/MANUAL
+++ b/MANUAL
@@ -730,6 +730,9 @@ Version 1.6
                          background transparency. By default the values as broadcast
                          are used.
 
+  Record Teletext Subtitles = no
+                         If set to 'yes', teletext subtitles will be recorded.
+
   LNB:
 
   SLOF               = 11700  The switching frequency (in MHz) between low and
diff --git a/config.c b/config.c
index 73b11b1..f2eebe6 100644
--- a/config.c
+++ b/config.c
@@ -333,6 +333,7 @@ cSetup::cSetup(void)
   MarginStop = 10;
   AudioLanguages[0] = -1;
   DisplaySubtitles = 0;
+  SupportTeletext = 0;
   SubtitleLanguages[0] = -1;
   SubtitleOffset = 0;
   SubtitleFgTransparency = 0;
@@ -524,6 +525,7 @@ bool cSetup::Parse(const char *Name, const char *Value)
   else if (!strcasecmp(Name, "MarginStop"))          MarginStop         = atoi(Value);
   else if (!strcasecmp(Name, "AudioLanguages"))      return ParseLanguages(Value, AudioLanguages);
   else if (!strcasecmp(Name, "DisplaySubtitles"))    DisplaySubtitles   = atoi(Value);
+  else if (!strcasecmp(Name, "SupportTeletext"))     SupportTeletext    = atoi(Value);
   else if (!strcasecmp(Name, "SubtitleLanguages"))   return ParseLanguages(Value, SubtitleLanguages);
   else if (!strcasecmp(Name, "SubtitleOffset"))      SubtitleOffset     = atoi(Value);
   else if (!strcasecmp(Name, "SubtitleFgTransparency")) SubtitleFgTransparency = atoi(Value);
@@ -620,6 +622,7 @@ bool cSetup::Save(void)
   Store("MarginStop",         MarginStop);
   StoreLanguages("AudioLanguages", AudioLanguages);
   Store("DisplaySubtitles",   DisplaySubtitles);
+  Store("SupportTeletext",    SupportTeletext);
   StoreLanguages("SubtitleLanguages", SubtitleLanguages);
   Store("SubtitleOffset",     SubtitleOffset);
   Store("SubtitleFgTransparency", SubtitleFgTransparency);
diff --git a/config.h b/config.h
index 7041eb7..289d4b6 100644
--- a/config.h
+++ b/config.h
@@ -235,6 +235,7 @@ public:
   int MarginStart, MarginStop;
   int AudioLanguages[I18N_MAX_LANGUAGES + 1];
   int DisplaySubtitles;
+  int SupportTeletext;
   int SubtitleLanguages[I18N_MAX_LANGUAGES + 1];
   int SubtitleOffset;
   int SubtitleFgTransparency, SubtitleBgTransparency;
diff --git a/menu.c b/menu.c
index 19cfabb..d2deeb3 100644
--- a/menu.c
+++ b/menu.c
@@ -2790,6 +2790,7 @@ void cMenuSetupDVB::Setup(void)
      Add(new cMenuEditIntItem( tr("Setup.DVB$Subtitle foreground transparency"), &data.SubtitleFgTransparency, 0, 9));
      Add(new cMenuEditIntItem( tr("Setup.DVB$Subtitle background transparency"), &data.SubtitleBgTransparency, 0, 10));
      }
+  Add(new cMenuEditBoolItem(tr("Setup.DVB$Enable teletext support"), &data.SupportTeletext));
 
   SetCurrent(Get(current));
   Display();
diff --git a/po/ca_ES.po b/po/ca_ES.po
index 247113b..aba1ae3 100644
--- a/po/ca_ES.po
+++ b/po/ca_ES.po
@@ -943,6 +943,9 @@ msgstr "Transpar
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Transparncia fons subttols"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "Configuraci de l'LNB"
 
diff --git a/po/cs_CZ.po b/po/cs_CZ.po
index f6313ba..aec6f4e 100644
--- a/po/cs_CZ.po
+++ b/po/cs_CZ.po
@@ -942,6 +942,9 @@ msgstr "Průhlednost písma titulků"
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Průhlednost pozadí titulků"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/da_DK.po b/po/da_DK.po
index 40cdebd..192173d 100644
--- a/po/da_DK.po
+++ b/po/da_DK.po
@@ -940,6 +940,9 @@ msgstr "Undertekst forgrundsgennemsigtighed"
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Undertekst baggrundsgennemsigtighed"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/de_DE.po b/po/de_DE.po
index 4d4f3df..a3227a0 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -940,6 +940,9 @@ msgstr "Untertitel-Transparenz Vordergrund"
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Untertitel-Transparenz Hintergrund"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr "Videotext-Untersttzung aktivieren"
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/el_GR.po b/po/el_GR.po
index 5414ebc..913f39e 100644
--- a/po/el_GR.po
+++ b/po/el_GR.po
@@ -940,6 +940,9 @@ msgstr ""
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr ""
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/es_ES.po b/po/es_ES.po
index 217f775..78a9491 100644
--- a/po/es_ES.po
+++ b/po/es_ES.po
@@ -941,6 +941,9 @@ msgstr "Transparencia primer plano subt
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Transparencia fondo subttulos"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/et_EE.po b/po/et_EE.po
index 5010dc4..af2e2d3 100644
--- a/po/et_EE.po
+++ b/po/et_EE.po
@@ -940,6 +940,9 @@ msgstr "Subtiitri l
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Subtiitri tausta lbipaistvus"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr "Teleteksti tugi"
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/fi_FI.po b/po/fi_FI.po
index cd57e7c..e6a22bf 100644
--- a/po/fi_FI.po
+++ b/po/fi_FI.po
@@ -943,6 +943,9 @@ msgstr "Tekstityksen läpinäkyvyys"
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Tekstityksen taustan läpinäkyvyys"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr "Salli teksti-TV-tuki"
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/fr_FR.po b/po/fr_FR.po
index 0d4cb7c..770038e 100644
--- a/po/fr_FR.po
+++ b/po/fr_FR.po
@@ -946,6 +946,9 @@ msgstr "Transparence de l'avant-plan"
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Transparence du fond"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/hr_HR.po b/po/hr_HR.po
index 96ee695..51f596c 100644
--- a/po/hr_HR.po
+++ b/po/hr_HR.po
@@ -942,6 +942,9 @@ msgstr "Transparentnost titla"
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Transparentnost pozadine titla"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/hu_HU.po b/po/hu_HU.po
index a17b209..2f70812 100644
--- a/po/hu_HU.po
+++ b/po/hu_HU.po
@@ -943,6 +943,9 @@ msgstr "Felirat transzparenci
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Felirat htternek transzparencija"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/it_IT.po b/po/it_IT.po
index 89d4237..5a055b2 100644
--- a/po/it_IT.po
+++ b/po/it_IT.po
@@ -947,6 +947,9 @@ msgstr "Trasparenza sottotitoli"
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Trasparenza sfondo sottotitoli"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/lt_LT.po b/po/lt_LT.po
index 02465e6..8b5d996 100644
--- a/po/lt_LT.po
+++ b/po/lt_LT.po
@@ -940,6 +940,9 @@ msgstr "Subtitrų priekinio vaizdo permatomumas"
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Subtitrų fono permatomumas"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "Konverteris (LNB)"
 
diff --git a/po/nl_NL.po b/po/nl_NL.po
index f570337..73a02b3 100644
--- a/po/nl_NL.po
+++ b/po/nl_NL.po
@@ -944,6 +944,9 @@ msgstr "Transparantie voorgrond ondertiteling"
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Transparantie achtergrond ondertiteling"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/nn_NO.po b/po/nn_NO.po
index 2f40cfe..0934c9a 100644
--- a/po/nn_NO.po
+++ b/po/nn_NO.po
@@ -941,6 +941,9 @@ msgstr ""
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr ""
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/pl_PL.po b/po/pl_PL.po
index 9620e1b..39057fd 100644
--- a/po/pl_PL.po
+++ b/po/pl_PL.po
@@ -941,6 +941,9 @@ msgstr "Prze
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Przerocze podtytuw: To"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/pt_PT.po b/po/pt_PT.po
index 0510d9d..3bea1f1 100644
--- a/po/pt_PT.po
+++ b/po/pt_PT.po
@@ -940,6 +940,9 @@ msgstr "Transpar
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Transparncia de background das legendas"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/ro_RO.po b/po/ro_RO.po
index e0a2119..1d4a412 100644
--- a/po/ro_RO.po
+++ b/po/ro_RO.po
@@ -943,6 +943,9 @@ msgstr "Transparen
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Transparena fundalului subtitrrii"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/ru_RU.po b/po/ru_RU.po
index 889b98b..89029e1 100644
--- a/po/ru_RU.po
+++ b/po/ru_RU.po
@@ -941,6 +941,9 @@ msgstr "
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "  "
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr ""
 
diff --git a/po/sk_SK.po b/po/sk_SK.po
index 129fad3..eff0bd1 100644
--- a/po/sk_SK.po
+++ b/po/sk_SK.po
@@ -941,6 +941,9 @@ msgstr "Prieh
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Priehadnos pozadia titulkov"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/sl_SI.po b/po/sl_SI.po
index 9f1e806..7f2bdd7 100644
--- a/po/sl_SI.po
+++ b/po/sl_SI.po
@@ -941,6 +941,9 @@ msgstr "Transparentnost podnapisov"
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Transparentnost ozadja podnapisov"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/sv_SE.po b/po/sv_SE.po
index e9d39dd..9c366d2 100644
--- a/po/sv_SE.po
+++ b/po/sv_SE.po
@@ -943,6 +943,9 @@ msgstr "Transparent f
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Transparent bakgrund textremsa"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/tr_TR.po b/po/tr_TR.po
index 9acd1c1..50a6295 100644
--- a/po/tr_TR.po
+++ b/po/tr_TR.po
@@ -940,6 +940,9 @@ msgstr "Altyaz
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Altyaz arka effaflk"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "LNB"
 
diff --git a/po/uk_UA.po b/po/uk_UA.po
index b62fca7..25e7095 100644
--- a/po/uk_UA.po
+++ b/po/uk_UA.po
@@ -940,6 +940,9 @@ msgstr "Прозорість переднього плану субтитрів"
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "Прозорість заднього плану субтитрів"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "Конвертер"
 
diff --git a/po/zh_CN.po b/po/zh_CN.po
index bffa301..141c362 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -943,6 +943,9 @@ msgstr "字幕前景透明度"
 msgid "Setup.DVB$Subtitle background transparency"
 msgstr "字幕背景透明度"
 
+msgid "Setup.DVB$Enable teletext support"
+msgstr ""
+
 msgid "LNB"
 msgstr "切换器设置"
 
diff --git a/receiver.c b/receiver.c
index a2c6781..ed28f1b 100644
--- a/receiver.c
+++ b/receiver.c
@@ -83,7 +83,7 @@ bool cReceiver::SetPids(const cChannel *Channel)
             AddPids(Channel->Apids()) &&
             AddPids(Channel->Dpids()) &&
             AddPids(Channel->Spids()) &&
-            AddPid(Channel->Tpid());
+            (!Setup.SupportTeletext || AddPid(Channel->Tpid()));
      }
 return true;
 }
-- 
1.7.1