aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-04-30 21:39:35 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-04-30 21:39:35 +0000
commitfa458113395a4b8da3954b656dbe6c55b30f224a (patch)
treeab535494fa74ba597a83053c2619711d7d263b7a /lib/dvb
parent46f28210d3fc839f621900e932f650e197688ce5 (diff)
downloadenigma2-fa458113395a4b8da3954b656dbe6c55b30f224a.tar.gz
enigma2-fa458113395a4b8da3954b656dbe6c55b30f224a.zip
send write error messages down to service events
Diffstat (limited to 'lib/dvb')
-rw-r--r--lib/dvb/demux.cpp11
-rw-r--r--lib/dvb/demux.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/dvb/demux.cpp b/lib/dvb/demux.cpp
index 0fbd6fbd..22b09ffe 100644
--- a/lib/dvb/demux.cpp
+++ b/lib/dvb/demux.cpp
@@ -443,6 +443,7 @@ eDVBTSRecorder::eDVBTSRecorder(eDVBDemux *demux): m_demux(demux)
m_running = 0;
m_target_fd = -1;
m_thread = new eDVBRecordFileThread();
+ CONNECT(m_thread->m_event, eDVBTSRecorder::filepushEvent);
#ifndef HAVE_ADD_PID
m_demux->m_dvr_busy = 1;
#endif
@@ -648,3 +649,13 @@ void eDVBTSRecorder::stopPID(int pid)
#endif
m_pids[pid] = -1;
}
+
+void eDVBTSRecorder::filepushEvent(int event)
+{
+ switch (event)
+ {
+ case eFilePushThread::evtWriteError:
+ m_event(eventWriteError);
+ break;
+ }
+}
diff --git a/lib/dvb/demux.h b/lib/dvb/demux.h
index ee731ef8..e3759331 100644
--- a/lib/dvb/demux.h
+++ b/lib/dvb/demux.h
@@ -109,6 +109,7 @@ private:
void stopPID(int pid);
eDVBRecordFileThread *m_thread;
+ void filepushEvent(int event);
std::map<int,int> m_pids;
Signal1<void,int> m_event;