From 8c2738805bfb08c0398acf6cb61f21bf7afa0d4d Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Mon, 19 Jun 2006 21:08:46 +0000 Subject: [PATCH] no more segfault when frontend device is busy --- lib/dvb/frontend.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.30.2