Ticket #174: scan.2.patch

File scan.2.patch, 1.9 KB (added by john.pullan@…, 19 years ago)

Fixes to allow non DVB compiles

  • libs/libmythtv/scanwizard.cpp

     
    431431            return;
    432432        }
    433433
    434 #ifdef USE_OWN_SIPARSER
     434#if defined(USING_DVB) && defined(USE_OWN_SIPARSER)
    435435        if (GetDVBChannel())
    436436            GetDVBChannel()->disable_siparser = true;
    437437#endif // !USE_OWN_SIPARSER
  • libs/libmythtv/siscan.cpp

     
    157157
    158158void *SIScan::SpawnSectionReader(void *param)
    159159{
     160#ifdef USING_DVB
    160161    DVBSIParser *siparser = (DVBSIParser*) param;
    161162    siparser->StartSectionReader();
     163#else
     164   (void)param;
     165#endif
    162166    return NULL;
    163167}
    164168
     
    743747    /* Force dvbchannel to exit */
    744748    if (siparser && GetDVBChannel())
    745749        GetDVBChannel()->StopTuning();
    746 #endif // USING_DVB
    747750#ifdef USE_OWN_SIPARSER
    748751    if (siparser)
    749752    {
     
    752755        delete siparser;
    753756    }
    754757#endif // !USE_OWN_SIPARSER
     758#endif // USING_DVB
    755759    if (scanner_thread_running)
    756760        pthread_join(scanner_thread, NULL);
    757761    if (signalMonitor)
     
    13421346                .arg(service_name));
    13431347        }
    13441348    }
     1349#else
     1350    (void)tid_db;
    13451351#endif // USING_DVB
    13461352}
    13471353
     
    15201526// ///////////////////// Static DB helper methods /////////////////////
    15211527// ///////////////////// Static DB helper methods /////////////////////
    15221528
     1529#ifdef USING_DVB
    15231530static bool ignore_encrypted_services(int db_mplexid, QString videodevice)
    15241531{
    15251532    MSqlQuery query(MSqlQuery::InitCon());
     
    15431550    return true;
    15441551}
    15451552
    1546 #ifdef USING_DVB
    15471553static int create_dtv_multiplex_ofdm(const TransportScanItem& item,
    15481554                                     const DVBTuning& tuning)
    15491555{