[mythtv] Thumbnail regeneration in WatchRecordings every viewing

Torbjörn Jansson torbjorn.jansson at mbox200.swipnet.se
Tue Jan 3 22:55:12 UTC 2006


mythtv-dev-bounces at mythtv.org <> wrote:
> Stutty wrote:
>> As far as I can work out the ProgramInfo.lastmodified is always newer
>> than the thumbnail when I exit from watching a recording... So this
>> code in Playbackbox::getPixmap, always gets exercised:
>> 
>>    if (previewLastModified <  pginfo->lastmodified &&
>>        previewLastModified >= pginfo->recendts &&
>>        !pginfo->IsEditing() &&
>>        !JobQueue::IsJobRunning(JOB_COMMFLAG, pginfo))    {
>>        RemoteGeneratePreviewPixmap(pginfo);
>>        previewLastModified = getPreviewLastModified(pginfo);    }
>> 
>> 
>> If this is a problem then I'll raise a ticket tomorrow, otherwise
>> I'll just patch locally as it's a real PITA for me.
>> 
>> 
> Please do (with patch if possible) as this has been noted before on
> -dev and certain exists as an issue.
> 
> Kevin

Could this be another case where the miliseconds part of the date affects
coparison of the dates?

Maybe one of the dates comes from a QDateTime::currentDateTime() and the
other one from the database.
So even if they match up to the second, the milisecond part does not.



More information about the mythtv-dev mailing list