[mythtv-commits] mythtv/master commit: e8f6baf05 by Daniel Kristjansson (daniel-kristjansson)

MythTV noreply at mythtv.org
Thu Nov 24 15:36:57 UTC 2011

      Author:  Daniel Kristjansson <danielk at cuymedia.net>
 Change Date:  2011-11-24T07:36:31-08:00
   Push Date:  2011/11/24 07:36:47 -0800
  Repository:  mythtv
      Branch:  master
New Revision:  e8f6baf050fe97853a1dbbbb44e1d2ca6904fcee
   Changeset:  https://github.com/MythTV/mythtv/commit/e8f6baf05


Seek backward optimization.

This improves the existing short seek optimization in FileRingBuffer, when
seeking backward we know we are no closer to the end of the buffer than we
were previously, so if reads were allowed they should still be allowed.

It may be possible to further optimize this by actually setting readsallowed
to true on backward seeks however that doesn't appear necessary and would
complicate the code by having multiple places where readsallowed is set to
true (currently this is only done in the main read ahead loop.)

This hot-point as well as the original solution were discovered by Chris Pinkham.



More information about the mythtv-commits mailing list