From: Andreas Monzner Date: Mon, 19 Jun 2006 21:08:46 +0000 (+0000) Subject: no more segfault when frontend device is busy X-Git-Tag: 2.6.0~3284 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/8c2738805bfb08c0398acf6cb61f21bf7afa0d4d no more segfault when frontend device is busy --- diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp index e3bd5bc6..e495b1c5 100644 --- a/lib/dvb/frontend.cpp +++ b/lib/dvb/frontend.cpp @@ -1680,6 +1680,12 @@ RESULT eDVBFrontend::tune(const iDVBFrontendParameters &where) int res=0; + if (!m_sn) + { + eDebug("no frontend device opened... do not try to tune !!!"); + return -ENODEV; + } + if (m_type == -1) return -ENODEV;