[mythtv] [PATCH]DVB setup truncation of dtv_multiplex table
Nigel Pearson
nigel at ind.tansu.com.au
Fri Apr 8 01:13:12 UTC 2005
> The attached patch truncates the dtv_multiplex table if you choose to
> clear your channel options in setup.
I agree dtv_multiplex should be truncated
(because otherwise a new set of identical
entries would be created next time you scan,
except that the mplexid would be higher),
but the old tables ( dvb_{channel,pids} ) shouldn't.
Suggest this, instead:
% cvs diff -u main.cpp
Index: main.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/setup/main.cpp,v
retrieving revision 1.56
diff -u -r1.56 main.cpp
--- main.cpp 7 Apr 2005 02:24:14 -0000 1.56
+++ main.cpp 8 Apr 2005 01:12:48 -0000
@@ -48,8 +48,7 @@
query.exec("TRUNCATE TABLE credits;");
query.exec("TRUNCATE TABLE programrating;");
query.exec("TRUNCATE TABLE programgenres;");
- query.exec("TRUNCATE TABLE dvb_channel;");
- query.exec("TRUNCATE TABLE dvb_pids;");
+ query.exec("TRUNCATE TABLE dtv_multiplex;");
query.exec("TRUNCATE TABLE cardinput;");
}
--
Nigel Pearson, nigel at ind.tansu.com.au | "Reality is that which,
Telstra BI&D, Sydney, Australia | when you stop believing
Office: 8255 4222 Fax: 8255 3153 | in it, doesn't go away."
Mobile: 0408 664435 Home: 9792 6998 | Philip K. Dick - 'Valis'
More information about the mythtv-dev
mailing list