[mythtv-commits] Ticket #1870: StartPlayer timeout of 20 seconds too short for VIA Epia-M frontend

MythTV mythtv at cvs.mythtv.org
Fri May 26 21:12:59 UTC 2006


#1870: StartPlayer timeout of 20 seconds too short for VIA Epia-M frontend
-------------------------------------+--------------------------------------
 Reporter:  klaas.de.waal at hccnet.nl  |       Owner:  ijr
     Type:  defect                   |      Status:  new
 Priority:  minor                    |   Milestone:     
Component:  mythtv                   |     Version:     
 Severity:  medium                   |  
-------------------------------------+--------------------------------------
 Start of playback of recordings on a VIA Epia-M frontend sometimes fails
 with this error:
 TV Error: StartPlayer(): NVP is not playing after 20000 msec

 The StartPlayer code is in libs/libmythtv/tv_play.cpp
 I have changed two things in this file:
 - increase the default timeout value from 20000 to 40000
 - change the wait loop sleep time from 50 microseconds to 50000
 microseconds
 A sleep time of 50 microseconds is very small and causes CPU time to be
 wasted in the wait loop.
 For reference, one video frame is 20 milliseconds (PAL).

 With these changes I can now play back any recording, the worst startup
 time is now:
 TV: StartPlayer(): took 25490 ms to start player.

 I have attached a patch for tv_play.cpp for the 0.19 stable revision
 10024.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/1870>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list