From: ghost Date: Wed, 10 Nov 2010 17:18:32 +0000 (+0100) Subject: dvb.cpp: small fix for playSource X-Git-Tag: master-2010.12^2~8 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/7d044888ef99903c5cb880cc5a83d03336726ea2 dvb.cpp: small fix for playSource --- 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 &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 source = f; @@ -1774,6 +1766,14 @@ RESULT eDVBChannel::playFile(const char *file) RESULT eDVBChannel::playSource(ePtr &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,