Ticket #6274: HDHR-DVB.1.patch
File HDHR-DVB.1.patch, 2.2 KB (added by , 15 years ago) |
---|
-
libs/libmythtv/hdhrrecorder.h
18 18 typedef vector<uint> uint_vec_t; 19 19 20 20 class HDHRRecorder : public DTVRecorder, 21 public DVBMainStreamListener, 22 public ATSCMainStreamListener, 21 23 public MPEGStreamListener, 22 24 public MPEGSingleProgramStreamListener 23 25 { 24 friend class ATSCStreamData;25 26 26 public: 27 27 HDHRRecorder(TVRec *rec, HDHRChannel *channel); 28 28 ~HDHRRecorder(); … … 52 52 void HandleSingleProgramPAT(ProgramAssociationTable *pat); 53 53 void HandleSingleProgramPMT(ProgramMapTable *pmt); 54 54 55 /*56 55 // ATSC 57 56 void HandleSTT(const SystemTimeTable*) {} 58 void HandleMGT(const MasterGuideTable * mgt);57 void HandleMGT(const MasterGuideTable *) {}; 59 58 void HandleVCT(uint, const VirtualChannelTable*) {} 60 */61 59 60 // DVBMainStreamListener 61 void HandleTDT(const TimeDateTable*) {} 62 void HandleNIT(const NetworkInformationTable*) {} 63 void HandleSDT(uint /*tsid*/, const ServiceDescriptionTable*) {} 64 62 65 private: 63 66 bool AdjustFilters(void); 64 67 bool AdjustEITPIDs(void); -
libs/libmythtv/hdhrrecorder.cpp
27 27 #include "hdhrrecorder.h" 28 28 #include "atsctables.h" 29 29 #include "atscstreamdata.h" 30 #include "dvbstreamdata.h" 30 31 #include "eithelper.h" 31 32 #include "tv_rec.h" 32 33 … … 176 177 data->AddMPEGListener(this); 177 178 178 179 ATSCStreamData *atsc = dynamic_cast<ATSCStreamData*>(data); 180 DVBStreamData *dvb = dynamic_cast<DVBStreamData*>(data); 179 181 180 182 if (atsc && atsc->DesiredMinorChannel()) 181 183 atsc->SetDesiredChannel(atsc->DesiredMajorChannel(), 182 184 atsc->DesiredMinorChannel()); 185 else if (dvb) 186 dvb->AddDVBMainListener(this); 183 187 else if (data->DesiredProgram() >= 0) 184 188 data->SetDesiredProgram(data->DesiredProgram()); 185 189 }