int eDVBTSTools::openFile(const char *filename, int nostreaminfo)
{
eRawFile *f = new eRawFile();
- ePtr<iDataSource> src = f;
+ ePtr<iTsSource> src = f;
if (f->open(filename, 1) < 0)
return -1;
return 0;
}
-void eDVBTSTools::setSource(ePtr<iDataSource> &source, const char *stream_info_filename)
+void eDVBTSTools::setSource(ePtr<iTsSource> &source, const char *stream_info_filename)
{
closeFile();
if (!m_streaminfo.getPTS(offset, pts))
return 0;
- if (!m_source->valid())
+ if (!m_source || !m_source->valid())
return -1;
offset -= offset % 188;
void eDVBTSTools::calcBegin()
{
- if (!m_source->valid())
+ if (!m_source || !m_source->valid())
return;
if (!(m_begin_valid || m_futile))
void eDVBTSTools::calcEnd()
{
- if (!m_source->valid())
+ if (!m_source || !m_source->valid())
return;
off_t end = m_source->lseek(0, SEEK_END);
int eDVBTSTools::findPMT(int &pmt_pid, int &service_id)
{
/* FIXME: this will be factored out soon! */
- if (!m_source->valid())
+ if (!m_source || !m_source->valid())
{
eDebug(" file not valid");
return -1;