Ticket #4515: dsmcc.patch
File dsmcc.patch, 4.4 KB (added by , 16 years ago) |
---|
-
libs/libmythtv/dvbrecorder.cpp
500 500 return ProcessTSPacket(tspacket); 501 501 } 502 502 503 bool DVBRecorder::ProcessListenTSPacket(const TSPacket &tspacket) 504 { 505 _buffer_packets = !FindAudioKeyframes(&tspacket); 506 return ProcessTSPacket(tspacket); 507 } 508 503 509 bool DVBRecorder::ProcessTSPacket(const TSPacket &tspacket) 504 510 { 505 511 const uint pid = tspacket.PID(); -
libs/libmythtv/avformatdecoder.cpp
3233 3233 ProcessDSMCCPacket(curstream, pkt); 3234 3234 3235 3235 av_free_packet(pkt); 3236 3237 // Have to return regularly to ensure that the OSD is updated. 3238 // This applies both to MHEG and also channel browsing. 3239 if (onlyvideo < 0) 3240 { 3241 if (itv && itv->ImageHasChanged()) 3242 allowedquit = true; 3243 OSD *osd = GetNVP()->GetOSD(); 3244 if (osd->hasChanged()) 3245 allowedquit = true; 3246 } 3247 3236 3248 continue; 3237 3249 } 3238 3250 … … 3705 3717 // so "dvb" is the safest choice for system info type, since this 3706 3718 // will ignore other uses of the same stream id in DVB countries. 3707 3719 has_video |= pmt.IsVideo(i, "dvb"); 3720 // MHEG may explictly select a private stream as video 3721 if (i == selectedVideoIndex && pmt.StreamType(i) == StreamID::PrivData) 3722 has_video = true; 3708 3723 } 3709 3724 3710 3725 return has_video; -
libs/libmythtv/dvbrecorder.h
84 84 void HandleSDT(uint /*tsid*/, const ServiceDescriptionTable*) {} 85 85 86 86 // TSPacketListener 87 bool Process TSPacket(const TSPacket& tspacket);87 bool ProcessListenTSPacket(const TSPacket& tspacket); 88 88 89 89 // TSPacketListenerAV 90 90 bool ProcessVideoTSPacket(const TSPacket& tspacket); … … 101 101 void ReaderPaused(int fd); 102 102 bool PauseAndWait(int timeout = 100); 103 103 104 bool ProcessTSPacket(const TSPacket& tspacket); 105 104 106 private: 105 107 // Options set in SetOption() 106 108 int _card_number_option; -
libs/libmythtv/mpeg/mpegstreamdata.cpp
977 977 if (IsWritingPID(tspacket.PID()) && _ts_writing_listeners.size()) 978 978 { 979 979 for (uint j = 0; j < _ts_writing_listeners.size(); j++) 980 _ts_writing_listeners[j]->Process TSPacket(tspacket);980 _ts_writing_listeners[j]->ProcessListenTSPacket(tspacket); 981 981 } 982 982 983 983 if (IsListeningPID(tspacket.PID())) -
libs/libmythtv/mpeg/streamlisteners.h
49 49 class TSPacketListener 50 50 { 51 51 public: 52 virtual bool Process TSPacket(const TSPacket& tspacket) = 0;52 virtual bool ProcessListenTSPacket(const TSPacket& tspacket) = 0; 53 53 54 54 protected: 55 55 virtual ~TSPacketListener() { } -
libs/libmythtv/osd.h
168 168 169 169 float GetThemeAspect(void) { return m_themeaspect; } 170 170 171 bool hasChanged(void) { return changed; } 172 171 173 private: 172 174 bool InitDefaults(void); 173 175 bool InitCC608(void); -
libs/libmythtv/avformatdecoder.h
205 205 void HandleGopStart(AVPacket *pkt); 206 206 207 207 bool GenerateDummyVideoFrame(void); 208 staticbool HasVideo(const AVFormatContext *ic);208 bool HasVideo(const AVFormatContext *ic); 209 209 210 210 private: 211 211 class AvFormatDecoderPrivate *d;