| 3806 | |
| 3807 | // Make sure DTV recorder sees the tables.. |
| 3808 | if (GetDTVChannel() && GetDTVRecorder()) |
| 3809 | { |
| 3810 | DTVChannel *dtvc = GetDTVChannel(); |
| 3811 | const QString tuningmode = dtvc->GetTuningMode(); |
| 3812 | MPEGStreamData *sd = GetDTVRecorder()->GetStreamData(); |
| 3813 | |
| 3814 | if (sd && (tuningmode.left(4) == "atsc")) |
| 3815 | { |
| 3816 | ATSCStreamData *asd = dynamic_cast<ATSCStreamData*>(sd); |
| 3817 | int major = dtvc->GetMajorChannel(); |
| 3818 | int minor = dtvc->GetMinorChannel(); |
| 3819 | if (asd && (minor > 0)) |
| 3820 | asd->SetDesiredChannel(major, minor); |
| 3821 | } |
| 3822 | |
| 3823 | if (sd && (dtvc->GetProgramNumber() >= 0)) |
| 3824 | sd->SetDesiredProgram(dtvc->GetProgramNumber()); |
| 3825 | } |
| 3826 | |