Go to the documentation of this file.
15 #define LOC QString("CetonRec[%1]: ") \
16 .arg(m_tvrec ? m_tvrec->GetInputId() : -1)
22 LOG(VB_GENERAL, LOG_WARNING,
LOC +
"Card already open");
31 LOG(VB_RECORD, LOG_INFO,
LOC +
"Ceton opened successfully");
38 LOG(VB_RECORD, LOG_INFO,
LOC +
"Close() -- begin");
44 LOG(VB_RECORD, LOG_INFO,
LOC +
"Close() -- end");
56 LOG(VB_RECORD, LOG_INFO,
LOC +
"run -- begin");
61 m_error =
"Failed to open CetonRecorder device";
97 LOG(VB_GENERAL, LOG_WARNING,
LOC +
98 "Recording will not commence until a PMT is set.");
105 m_error =
"Stream handler died unexpectedly.";
110 LOG(VB_RECORD, LOG_INFO,
LOC +
"run -- ending...");
124 LOG(VB_RECORD, LOG_INFO,
LOC +
"run -- end");
void HandleSingleProgramPMT(ProgramMapTable *pmt, bool insert) override
ProgramMapTable * m_inputPmt
PMT on input side.
void ResetForNewFile(void) override
void AddListener(MPEGStreamData *data, bool=false, bool=false, const QString &output_file=QString()) override
bool IsErrored(void) override
Tells us whether an unrecoverable error has been encountered.
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
void FinishRecording(void) override
Flushes the ringbuffer, and if this is not a live LiveTV recording saves the position map and filesiz...
const ProgramMapTable * PMTSingleProgram(void) const
virtual void RemoveListener(MPEGStreamData *data)
QString GetSIStandard(void) const override
QWaitCondition m_recordingWait
void RecorderPaused(void)
This is a callback, called by the "recorder" instance when it has actually paused.
uint GetInputId(void) const
Returns the inputid.
const ProgramAssociationTable * PATSingleProgram(void) const
void HandleSingleProgramPAT(ProgramAssociationTable *pat, bool insert) override
bool PauseAndWait(std::chrono::milliseconds timeout=100ms) override
If m_requestPause is true, sets pause and blocks up to timeout milliseconds or until unpaused,...
void RemoveWritingListener(TSPacketListener *val)
virtual bool IsRecordingRequested(void)
Tells us if StopRecording() has been called.
CetonStreamHandler * m_streamHandler
QString GetSIStandard(void) const
Returns PSIP table standard: MPEG, DVB, ATSC, or OpenCable.
QWaitCondition m_pauseWait
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
void AddAVListener(TSPacketListenerAV *val)
#define LOC
-*- Mode: c++ -*- CetonRecorder Copyright (c) 2011 Ronald Frazier Copyright (c) 2006-2009 by Silicond...
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
static void Return(CetonStreamHandler *&ref, int inputid)
MPEGStreamData * m_streamData
void AddWritingListener(TSPacketListener *val)
QString m_error
non-empty iff irrecoverable recording error detected
static CetonStreamHandler * Get(const QString &devname, int inputid)
void StartNewFile(void) override
bool m_recording
True while recording is actually being performed.
bool IsRunning(void) const
QWaitCondition m_unpauseWait
void RemoveAVListener(TSPacketListenerAV *val)
virtual bool IsPaused(bool holding_lock=false) const
Returns true iff recorder is paused.
bool m_requestRecording
True if API call has requested a recording be [re]started.