aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/06_freeview_channel_numbers.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/06_freeview_channel_numbers.dpatch')
-rw-r--r--debian/patches/06_freeview_channel_numbers.dpatch19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/06_freeview_channel_numbers.dpatch b/debian/patches/06_freeview_channel_numbers.dpatch
new file mode 100644
index 0000000..7991e18
--- /dev/null
+++ b/debian/patches/06_freeview_channel_numbers.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 06_vdr.dpatch by <ds@flibble.youmustbejoking.demon.co.uk>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad linuxtv-dvb-apps-1.1.0~/util/scan/scan.c linuxtv-dvb-apps-1.1.0/util/scan/scan.c
+--- linuxtv-dvb-apps-1.1.0~/util/scan/scan.c 2004-04-22 12:09:09.000000000 +0100
++++ linuxtv-dvb-apps-1.1.0/util/scan/scan.c 2005-10-22 16:51:01.161112392 +0100
+@@ -323,7 +323,7 @@
+ buf += 2;
+ for (i = 0; i < n; i++) {
+ service_id = (buf[0]<<8)|(buf[1]&0xff);
+- channel_num = (buf[2]&0x03<<8)|(buf[3]&0xff);
++ channel_num = (buf[2]&0x03)<<8|(buf[3]&0xff);
+ debug("Service ID 0x%x has channel number %d ", service_id, channel_num);
+ list_for_each(p1, &scanned_transponders) {
+ t = list_entry(p1, struct transponder, list);