missing fixes
authorFelix Domke <tmbinc@elitedvb.net>
Thu, 27 May 2004 11:50:20 +0000 (11:50 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Thu, 27 May 2004 11:50:20 +0000 (11:50 +0000)
include/connection.h
lib/dvb/demux.cpp

index 3ccaec19c4608035dae4fa150af7735d8d761d9c..8ca75cb90b76ac4965d3442949f7d77699d676dc 100644 (file)
@@ -7,10 +7,11 @@
 class eConnection: public virtual iObject, public Connection
 {
        int ref;
+       ePtr<iObject> m_owner;
 public:
 DEFINE_REF(eConnection);
 public:
-       eConnection(const Connection &conn): Connection(conn), ref(0) { };
+       eConnection(iObject *owner, const Connection &conn): Connection(conn), ref(0), m_owner(owner) { };
        virtual ~eConnection() { disconnect(); }
 };
 
index e1d8bbaf7b4d6aae9389dcbcb1a110d0fd8ed82d..be9ac937b04905ffb7dfc037f1ef19e55a52d0a7 100644 (file)
@@ -126,6 +126,6 @@ RESULT eDVBSectionReader::stop()
 
 RESULT eDVBSectionReader::connectRead(const Slot1<void,const __u8*> &r, ePtr<eConnection> &conn)
 {
-       conn = new eConnection(read.connect(r));
+       conn = new eConnection(this, read.connect(r));
        return 0;
 }