diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-06-19 21:08:46 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-06-19 21:08:46 +0000 |
| commit | 8c2738805bfb08c0398acf6cb61f21bf7afa0d4d (patch) | |
| tree | b1f3fbefc06434a72efd63406079e20d917b0df0 /lib/dvb/frontend.cpp | |
| parent | d452521070295fc71477c72f47456f07184ea751 (diff) | |
| download | enigma2-8c2738805bfb08c0398acf6cb61f21bf7afa0d4d.tar.gz enigma2-8c2738805bfb08c0398acf6cb61f21bf7afa0d4d.zip | |
no more segfault when frontend device is busy
Diffstat (limited to 'lib/dvb/frontend.cpp')
| -rw-r--r-- | lib/dvb/frontend.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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; |
