[mythtv] cc608decoder.cpp and mpeg2fix.cpp logging is very chatty

Robert Tsai mythtv at tsaiberspace.net
Wed Jun 28 20:52:46 UTC 2006


Would anyone mind making the following changes to reduce logging?

	--- ../mythtv-tot/libs/libmythtv/cc608decoder.cpp       2006-05-28 09:24:38.000000000 -0400
	+++ ./libs/libmythtv/cc608decoder.cpp   2006-05-28 22:50:35.000000000 -0400
	@@ -1094,7 +1094,7 @@
		 ; // reserved
	     else if (xds_class == 0x0d) // cont code: 0x0e
		 handled = true; // undefined
	-
	+#if DEBUG_XDS
	     if (!handled)
	     {   
		 VERBOSE(VB_IMPORTANT, QString("XDS: ") +
	@@ -1103,6 +1103,7 @@
			 .arg(xds_buf.size())
			 .arg(XDSDecodeString(xds_buf, 2, xds_buf.size() - 2)));
	     }
	+#endif // DEBUG_XDS
	 }

	 bool CC608Decoder::XDSPacketCRC(const vector<unsigned char> &xds_buf)

I would also like to change ./programs/mythtranscode/mpeg2fix.cpp to
have a stub "my_av_print" routine; this also gets very very verbose in
my logfiles when running mythtranscode. Maybe another #ifdef?

	--- ../mythtv-tot/programs/mythtranscode/mpeg2fix.cpp   2006-05-28 09:28:21.000000000 -0400
	+++ ./programs/mythtranscode/mpeg2fix.cpp       2006-06-24 12:15:44.000000000 -0
	400
	@@ -48,6 +48,7 @@

	 void my_av_print(void *ptr, int level, const char* fmt, va_list vl)
	 {
	+#if 0
	     (void) ptr;

	     static QString full_line("");
	@@ -64,6 +65,7 @@
		 VERBOSE(MPF_IMPORTANT, full_line);
		 full_line = QString("");
	     }
	+#endif
	 }

--Rob


More information about the mythtv-dev mailing list