[mythtv-commits] mythtv commit: r7824 by cpinkham

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Wed Nov 9 23:23:34 EST 2005


      Author: cpinkham
        Date: 2005-11-10 04:23:34 +0000 (Thu, 10 Nov 2005)
New Revision: 7824
   Changeset: http://cvs.mythtv.org/trac/changeset/7824

Modified:

   trunk/mythtv/programs/mythfrontend/playbackbox.cpp
   trunk/mythtv/programs/mythfrontend/playbackbox.h

Log:

Update on my recent patch to limit unnecessary calls to
PlaybackBox::FillList().  This patch based on suggestion by David Engel
to use a timer instead.

Instead of limiting calls to FillList() to once a second, we set a timer for
1 second whenever we receive a RECORDING_LIST_CHANGE event and the timer is
not active already.  This means we will fire off FillList() at most once
per second because of RECORDING_LIST_CHANGE events, but also will not wait
more than one second after recieving a RECORDING_LIST_CHANGE event to
update the list.  If we are playingSomething, then the timer event is
ignored when it fires.






More information about the mythtv-commits mailing list