diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2010-11-10 18:18:32 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2010-11-10 18:18:32 +0100 |
| commit | 7d044888ef99903c5cb880cc5a83d03336726ea2 (patch) | |
| tree | 0763a8d3494108fe580cc3c85e8fb06f5e9b4f38 | |
| parent | a6b9e53927e962e23ac55dc5c255081b17725d5d (diff) | |
| download | enigma2-7d044888ef99903c5cb880cc5a83d03336726ea2.tar.gz enigma2-7d044888ef99903c5cb880cc5a83d03336726ea2.zip | |
dvb.cpp: small fix for playSource
| -rw-r--r-- | lib/dvb/dvb.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/dvb/dvb.cpp b/lib/dvb/dvb.cpp index 21ebecf1..640f327c 100644 --- a/lib/dvb/dvb.cpp +++ b/lib/dvb/dvb.cpp @@ -1752,14 +1752,6 @@ RESULT eDVBChannel::getCurrentFrontendParameters(ePtr<iDVBFrontendParameters> &p RESULT eDVBChannel::playFile(const char *file) { - ASSERT(!m_frontend); - if (m_pvr_thread) - { - m_pvr_thread->stop(); - delete m_pvr_thread; - m_pvr_thread = 0; - } - eRawFile *f = new eRawFile(); ePtr<iDataSource> source = f; @@ -1774,6 +1766,14 @@ RESULT eDVBChannel::playFile(const char *file) RESULT eDVBChannel::playSource(ePtr<iDataSource> &source, const char *priv) { + ASSERT(!m_frontend); + if (m_pvr_thread) + { + m_pvr_thread->stop(); + delete m_pvr_thread; + m_pvr_thread = 0; + } + m_tstools.setSource(source, priv); /* DON'T EVEN THINK ABOUT FIXING THIS. FIX THE ATI SOURCES FIRST, |
