<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>Periodically while fast-forwarding in 
sticky-keys mode, it seems that CommDetect::ProcessNextFrame() gets passed a 
NULL pointer for the frame.&nbsp; As a result, a big fat core.&nbsp; This patch 
adds a check for the frame being NULL.&nbsp; I believe the source of this 
problem&nbsp;is the GetLastDecodedFrame() is returning the NULL but I am not 
aware of why.&nbsp; This patch solves the symptom at least.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>-Brett</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>Index: 
libs/libmythtv/commercial_skip.cpp<BR>===================================================================<BR>RCS 
file: /var/lib/mythcvs/mythtv/libs/libmythtv/commercial_skip.cpp,v<BR>retrieving 
revision 1.18<BR>diff -u -r1.18 commercial_skip.cpp<BR>--- 
libs/libmythtv/commercial_skip.cpp&nbsp; 5 Aug 2003 07:23:37 
-0000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.18<BR>+++ 
libs/libmythtv/commercial_skip.cpp&nbsp; 24 Oct 2003 06:08:16 -0000<BR>@@ -58,7 
+58,7 @@</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;void 
CommDetect::ProcessNextFrame(VideoFrame *frame, long long 
frame_number)<BR>&nbsp;{<BR>-&nbsp;&nbsp;&nbsp; if (frame-&gt;codec != 
FMT_YV12)<BR>+&nbsp;&nbsp;&nbsp; if (frame == NULL || frame-&gt;codec != 
FMT_YV12)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
return;</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp;&nbsp;&nbsp; frame_ptr = 
frame-&gt;buf;<BR></FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;</DIV></FONT></BODY></HTML>