projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'bug_537_vobsub' into experimental
[vuplus_dvbapp]
/
lib
/
dvb
/
dvb.cpp
diff --git
a/lib/dvb/dvb.cpp
b/lib/dvb/dvb.cpp
index
640f327
..
414ab8d
100644
(file)
--- a/
lib/dvb/dvb.cpp
+++ b/
lib/dvb/dvb.cpp
@@
-1753,7
+1753,7
@@
RESULT eDVBChannel::getCurrentFrontendParameters(ePtr<iDVBFrontendParameters> &p
RESULT eDVBChannel::playFile(const char *file)
{
eRawFile *f = new eRawFile();
RESULT eDVBChannel::playFile(const char *file)
{
eRawFile *f = new eRawFile();
- ePtr<i
Data
Source> source = f;
+ ePtr<i
Ts
Source> source = f;
if (f->open(file) < 0)
{
if (f->open(file) < 0)
{
@@
-1764,7
+1764,7
@@
RESULT eDVBChannel::playFile(const char *file)
return playSource(source, file);
}
return playSource(source, file);
}
-RESULT eDVBChannel::playSource(ePtr<i
DataSource> &source, const char *priv
)
+RESULT eDVBChannel::playSource(ePtr<i
TsSource> &source, const char *streaminfo_file
)
{
ASSERT(!m_frontend);
if (m_pvr_thread)
{
ASSERT(!m_frontend);
if (m_pvr_thread)
@@
-1774,7
+1774,13
@@
RESULT eDVBChannel::playSource(ePtr<iDataSource> &source, const char *priv)
m_pvr_thread = 0;
}
m_pvr_thread = 0;
}
- m_tstools.setSource(source, priv);
+ if (!source->valid())
+ {
+ eDebug("PVR source is not valid!");
+ return -ENOENT;
+ }
+
+ m_tstools.setSource(source, streaminfo_file);
/* DON'T EVEN THINK ABOUT FIXING THIS. FIX THE ATI SOURCES FIRST,
THEN DO A REAL FIX HERE! */
/* DON'T EVEN THINK ABOUT FIXING THIS. FIX THE ATI SOURCES FIRST,
THEN DO A REAL FIX HERE! */
@@
-1820,6
+1826,8
@@
void eDVBChannel::stopSource()
}
if (m_pvr_fd_dst >= 0)
::close(m_pvr_fd_dst);
}
if (m_pvr_fd_dst >= 0)
::close(m_pvr_fd_dst);
+ ePtr<iTsSource> d;
+ m_tstools.setSource(d);
}
void eDVBChannel::stopFile()
}
void eDVBChannel::stopFile()