From 7d044888ef99903c5cb880cc5a83d03336726ea2 Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 10 Nov 2010 18:18:32 +0100 Subject: [PATCH] dvb.cpp: small fix for playSource --- lib/dvb/dvb.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/dvb/dvb.cpp b/lib/dvb/dvb.cpp index 21ebecf..640f327 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, -- 2.7.4