- ::remove("recordings.ts");
- int fd = ::open("recording.ts", O_WRONLY|O_CREAT, 0644);
+ m_pids_active.clear();
+ m_state = statePrepared;
+ return m_service_handler.tune(m_ref, 0);
+ }
+ return 0;
+}
+
+int eDVBServiceRecord::doRecord()
+{
+ int err = doPrepare();
+ if (err)
+ return err;
+
+ if (!m_tuned)
+ return 0; /* try it again when we are tuned in */
+
+ if (!m_record && m_tuned)
+ {
+
+ eDebug("Recording to %s...", m_filename.c_str());
+ ::remove(m_filename.c_str());
+ int fd = ::open(m_filename.c_str(), O_WRONLY|O_CREAT|O_LARGEFILE, 0644);