[mythtv-commits] mythtv commit: r19330 by danielk
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Thu Dec 11 16:19:37 UTC 2008
Author: danielk
Date: 2008-12-11 16:19:37 +0000 (Thu, 11 Dec 2008)
New Revision: 19330
Changeset: http://cvs.mythtv.org/trac/changeset/19330
Modified:
branches/mythtv-vid/libs/libmythtv/NuppelVideoPlayer.cpp
branches/mythtv-vid/libs/libmythtv/recorderbase.cpp
Log:
Refs #2287. Make keyframe map syncing a bit more efficient. First we allow the NVP to pass -1 as the end keyframe to request, which means we want all keyframes greater than the start keyframe this avoids 1 of the two network roundtrips. Second, we use QMap::lowerBound() to find the first keyframe greater than or equal to the start keyframe, and then iterate until we reach the end of the map, this doesn't change the big O performance but makes the code about a 15 times faster in practice.
More information about the mythtv-commits
mailing list