git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b067ecf
)
shutdown channel if tune fails
author
Felix Domke
<tmbinc@elitedvb.net>
Tue, 15 Nov 2005 23:06:24 +0000
(23:06 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Tue, 15 Nov 2005 23:06:24 +0000
(23:06 +0000)
lib/dvb/dvb.cpp
patch
|
blob
|
history
diff --git
a/lib/dvb/dvb.cpp
b/lib/dvb/dvb.cpp
index 0201b337fb7ee32837931a671d733b5dd1f3040f..32c7ea31a67d1b06e9ca9e68a996e71cd188e28e 100644
(file)
--- a/
lib/dvb/dvb.cpp
+++ b/
lib/dvb/dvb.cpp
@@
-491,7
+491,18
@@
RESULT eDVBChannel::setChannel(const eDVBChannelID &channelid)
m_channel_id = channelid;
m_mgr->addChannel(channelid, this);
m_state = state_tuning;
m_channel_id = channelid;
m_mgr->addChannel(channelid, this);
m_state = state_tuning;
- return m_frontend->get().tune(*feparm);
+ /* if tuning fails, shutdown the channel immediately. */
+ int res;
+ res = m_frontend->get().tune(*feparm);
+
+ if (res)
+ {
+ m_state = state_release;
+ m_stateChanged(this);
+ return res;
+ }
+
+ return 0;
}
RESULT eDVBChannel::connectStateChange(const Slot1<void,iDVBChannel*> &stateChange, ePtr<eConnection> &connection)
}
RESULT eDVBChannel::connectStateChange(const Slot1<void,iDVBChannel*> &stateChange, ePtr<eConnection> &connection)