[mythtv-commits] Ticket #1660: database updates in *recorder.cpp cause dropped data

MythTV mythtv at cvs.mythtv.org
Tue Feb 6 05:36:56 UTC 2007


#1660: database updates in *recorder.cpp cause dropped data
----------------------------------------+-----------------------------------
 Reporter:  ajlill at ajlc.waterloo.on.ca  |        Owner:  cpinkham
     Type:  defect                      |       Status:  assigned
 Priority:  minor                       |    Milestone:  0.21    
Component:  mythtv                      |      Version:  head    
 Severity:  medium                      |   Resolution:          
----------------------------------------+-----------------------------------
Changes (by cpinkham):

  * status:  new => assigned

Comment:

 Can you guys try out my asyncdb_v1.diff version of the patch.  It has a
 couple changes.  It now takes a pointer to a MSqlQuery as an argument
 instead of a QString.  This way we can continue using the
 prepare()/bindValue() methodology rather than having to build QString's
 all over the place and dealing with having to quote, format dates, etc..
 The second change is the addition of a callback and data pointer to the
 add command.  This allows you to specify a callback procedure to be called
 when the query is executed.  The callback procedure will be called with
 the original MSqlQuery pointer and the passed-in data pointer as
 arguments.  I added this because one of the things on my TODO
 list for a long time has been to try to optimize the loading of the
 seektable when we start playback.  If we can load the seektable in the
 background, we can start playback quicker.

 I've done minor testing of this on my dev system and everything appears to
 be working fine.  I even tested the callback, but took the test callback
 out before I made this patch.  Can you please try this out and report back
 and hopefully we can get this into SVN soon.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/1660#comment:17>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list