[mythtv-commits] mythtv commit: r23151 by danielk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Fri Jan 15 21:50:05 UTC 2010


      Author: danielk
        Date: 2010-01-15 21:50:04 +0000 (Fri, 15 Jan 2010)
New Revision: 23151
   Changeset: http://svn.mythtv.org/trac/changeset/23151

Modified:

   trunk/mythtv/libs/libmythtv/NuppelVideoPlayer.cpp
   trunk/mythtv/libs/libmythtv/decoderbase.cpp
   trunk/mythtv/libs/libmythtv/decoderbase.h

Log:

Speeds up NVP::RebuildSeekTable while also saving the position map during the rebuild.

Instead of saving the position map in one fell swoop at the end of the rebuild, this instead incrementally updates it. If we just did this in the rebuild thread we'd be blocking while the mysql libs wait for Nagle timeouts to flush data (with remote DB's), so instead we use the threadpool to do the DB updates. We also use ProgramInfo::SetPositionMapDelta instead of SetPositionMap, since we already clear the pre-existing position map at the start of the rebuild.




More information about the mythtv-commits mailing list