Tx support: fixed buddy handling

pull/27/head
f4exb 2017-01-02 23:30:50 +01:00
rodzic f48fd4c3a4
commit 171ba7674e
4 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -389,6 +389,7 @@ void DeviceSinkAPI::addSourceBuddy(DeviceSourceAPI* buddy)
std::vector<DeviceSourceAPI*>::iterator it = m_sourceBuddies.begin();
m_sourceBuddies.push_back(buddy);
buddy->m_sinkBuddies.push_back(this);
qDebug("DeviceSinkAPI::addSourceBuddy: added buddy %s(%s) to the list [%lx] <-> [%lx]",
qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSourceSerial()),
@ -401,6 +402,7 @@ void DeviceSinkAPI::addSinkBuddy(DeviceSinkAPI* buddy)
std::vector<DeviceSinkAPI*>::iterator it = m_sinkBuddies.begin();
m_sinkBuddies.push_back(buddy);
buddy->m_sinkBuddies.push_back(this);
qDebug("DeviceSinkAPI::addSinkBuddy: added buddy %s(%s) to the list [%lx] <-> [%lx]",
qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSinkSerial()),

Wyświetl plik

@ -148,6 +148,7 @@ protected:
void *m_buddySharedPtr;
friend class MainWindow;
friend class DeviceSourceAPI;
};

Wyświetl plik

@ -399,6 +399,7 @@ void DeviceSourceAPI::addSinkBuddy(DeviceSinkAPI* buddy)
std::vector<DeviceSinkAPI*>::iterator it = m_sinkBuddies.begin();
m_sinkBuddies.push_back(buddy);
buddy->m_sourceBuddies.push_back(this);
qDebug("DeviceSourceAPI::addSinkBuddy: added buddy %s(%s) [%lx] <-> [%lx]",
qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSinkSerial()),

Wyświetl plik

@ -148,6 +148,7 @@ protected:
void *m_buddySharedPtr;
friend class MainWindow;
friend class DeviceSinkAPI;
};