[mythtv] [patch] dtvrecorder.cpp & hdtvrecorder.cpp assert removal
Daniel Thor Kristjansson
danielk at mrl.nyu.edu
Thu Jan 20 10:05:33 EST 2005
There were two asserts in dtvrecorder that did nothing at all.
i.e.
if (x==0)
return;
assert(x!=0);
These were left behind from when I was working on this code.
There were also two asserts in hdtvrecorder.
One was in Open(), and I've replaced this with an errored return from
Open() and an informative error message.
The other was in the WHACK_A_BUG_VIDEO code in WritePMT()
This one asserted that the rewritten pid was the video pid.
Instead I simply print an error message and don't rewrite
the pid if it doesn't correspond with the expected streamtype.
Both of these asserts are in debugging code, not enabled by default, but
we might as well handle these properly if only for our own sake when
debugging.
-- Daniel
-------------- next part --------------
Index: libs/libmythtv/dtvrecorder.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/dtvrecorder.cpp,v
retrieving revision 1.6
diff -u -r1.6 dtvrecorder.cpp