[mythtv-commits] Ticket #3542: Stuttering playback due to bad refresh rate detection.

MythTV mythtv at cvs.mythtv.org
Fri Jul 13 10:42:14 UTC 2007


#3542: Stuttering playback due to bad refresh rate detection.
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |        Owner:  nigel   
     Type:  defect     |       Status:  assigned
 Priority:  minor      |    Milestone:  unknown 
Component:  mythtv     |      Version:  head    
 Severity:  medium     |   Resolution:          
  Mlocked:  0          |  
-----------------------+----------------------------------------------------
Changes (by nigel):

  * owner:  ijr => nigel
  * status:  new => assigned


Comment:

 Thanks for the patch, XXXXXXX. I have simplified your patch slightly (pre-
 store the multiplication, maybe faster if the compiler doesn't already
 optimise it):
 {{{
 -    double rate = (double)((double)(dot_clock * 1000.0) /
 -                           (double)(mode_line.htotal *
 mode_line.vtotal));
 +    double rate = mode_line.htotal * mode_line.vtotal;
 +    // See if there's valid data to prevent a divide by zero.
 +    if (rate > 0)
 +        rate = (dot_clock * 1000.0) / rate;
 }}}
 Assuming this doesn't cause new bugs, will commit in a day or two.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3542#comment:1>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list