eDVBResourceManager *eDVBResourceManager::instance;
-eDVBResourceManager::eDVBResourceManager(): ref(0)
+eDVBResourceManager::eDVBResourceManager()
{
avail = 1;
busy = 0;
return -ENOENT;
}
+DEFINE_REF(eDVBChannel);
+
eDVBChannel::eDVBChannel(eDVBResourceManager *mgr, int adapter, int frontend, int demux): eDVBDemux(adapter, demux), m_state(state_idle), m_mgr(mgr)
{
if (frontend >= 0)
RESULT eDVBChannel::connectStateChange(const Slot1<void,iDVBChannel*> &stateChange, ePtr<eConnection> &connection)
{
- connection = new eConnection(m_stateChanged.connect(stateChange));
+ connection = new eConnection((iDVBChannel*)this, m_stateChanged.connect(stateChange));
return 0;
}