]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Only do commercial detection (teletext rundown) on swedish TV4 and TV4 HD. TV4 Guld...
authorJohn Törnblom <john.tornblom@gmail.com>
Mon, 7 Jan 2013 10:47:51 +0000 (11:47 +0100)
committerJohn Törnblom <john.tornblom@gmail.com>
Mon, 7 Jan 2013 10:49:37 +0000 (11:49 +0100)
src/teletext.c

index 0dbe6a6df1dc76f3b22b51ff904874aaa9f9f7bd..4b736cf2b0f0811e54d16a32b16a8e4ec35b3ea2 100644 (file)
@@ -540,6 +540,11 @@ teletext_rundown_scan(service_t *t, tt_private_t *ttp)
   if(ttp->ttp_rundown_valid == 0)
     return;
 
+  if(t->s_svcname &&
+     strcmp("TV4", t->s_svcname) &&
+     strcmp("TV4 HD", t->s_svcname))
+    return;
+
   for(i = 0; i < 23; i++) {
     l = ttp->ttp_rundown + 40 * i;
     if((l[1] & 0xf0) != 0x00 || !is_tt_clock(l + 32) || !is_tt_clock(l + 2))