Ticket #2335: ticket-2335.diff
File ticket-2335.diff, 974 bytes (added by , 17 years ago) |
---|
-
mythtv/libs/libmythtv/programinfo.cpp
a b ProgramInfo *ProgramInfo::GetProgramAtDa 731 731 return p; 732 732 733 733 // Round endtime up to the next half-hour. 734 if (p->endts.time().minute() < 30) 735 p->endts.setTime(QTime(p->endts.time().hour(), 30)); 736 else 737 { 738 if (p->endts.time().hour() == 23) 739 { 740 p->endts = p->endts.addDays(1); 741 p->endts.setTime(QTime(0, 0)); 742 } 743 else 744 p->endts.setTime(QTime(p->endts.time().hour() + 1, 0)); 745 } 734 p->endts.setTime(QTime(p->endts.time().hour(), (p->endts.time().minute() / 2) * 2)); 735 p->endts = p->endts.addSecs(2 * 60); 746 736 747 737 // if under a minute, bump it up to the next half hour 748 738 if (p->startts.secsTo(p->endts) < 60) 749 p->endts = p->endts.addSecs( 30* 60);739 p->endts = p->endts.addSecs(2 * 60); 750 740 751 741 p->recendts = p->endts; 752 742