diff --git a/mythtv/libs/libmythtv/tv_rec.cpp b/mythtv/libs/libmythtv/tv_rec.cpp
index 6f724bf..f1db7eb 100644
a
|
b
|
void TVRec::run(void) |
1394 | 1394 | } |
1395 | 1395 | else |
1396 | 1396 | { |
1397 | | scanner->StartActiveScan(this, eitTransportTimeout); |
1398 | | SetFlags(kFlagEITScannerRunning); |
1399 | | eitScanStartTime = QDateTime::currentDateTime().addYears(1); |
| 1397 | // We check if another card in the same input group is busy since it could be either virtual DVB-devices or a second tuner on a single card |
| 1398 | bool scanning_possible = true; |
| 1399 | vector<uint> inputids = CardUtil::GetInputIDs(cardid); |
| 1400 | for (uint j = 0; j < inputids.size() ; j++) |
| 1401 | { |
| 1402 | vector<uint> cardids = CardUtil::GetConflictingCards(inputids[j], cardid); |
| 1403 | for (uint i = 0; i < cardids.size() && scanning_possible; i++) |
| 1404 | { |
| 1405 | TunedInputInfo busy_input; |
| 1406 | scanning_possible = !RemoteIsBusy(cardids[i], busy_input); |
| 1407 | } |
| 1408 | } |
| 1409 | if(scanning_possible) |
| 1410 | { |
| 1411 | scanner->StartActiveScan(this, eitTransportTimeout); |
| 1412 | SetFlags(kFlagEITScannerRunning); |
| 1413 | eitScanStartTime = QDateTime::currentDateTime().addYears(1); |
| 1414 | } |
| 1415 | else |
| 1416 | eitScanStartTime = eitScanStartTime.addSecs(60); |
1400 | 1417 | } |
1401 | 1418 | } |
1402 | 1419 | |